i assume your hadoop cluster is configured for yarn. make sure you are build with "-Pyarn" flag also. Also verify you have "expost HADOOP_CONF_DIR=" in your zeppelin-env.sh file
On Wed, May 6, 2015 at 5:45 AM, Ronen Gross <[email protected]> wrote: > Hi, > > I have an Exception when I try to run the Zeppelin Tutorial example. > Zeppelin in spark local mode worked OK but when I'm using spark in cluster > mode I got an error when I run the %sql > > The Error is: > java.lang.ClassCastException: org.apache.hadoop.mapred.JobConf cannot be > cast to org.apache.spark.rdd.RDD at > org.apache.spark.SpaekContext$$anonfun$27.apply(SparkContext.scala:1045) > at > org.apache.spark.rdd.HadoopRDD$$anonfun$getJobConf$6.apply(HadoopRDD.scala:170) > at > org.apache.spark.rdd.HadoopRDD$$anonfun$getJobConf$6.apply(HadoopRDD.scala:170) > at scala.Option.map(Option.scala:145) > ... > ... > ... > > > I used this command to build a distribution of Zeppelin: > mvn clean package -Pspark-1.2 -Phadoop-2.4 -DskipTests > -Dhadoop.version=2.5.0-cdh5.3.1 -Dspark.version=1.2.1 -P build-distr > > > Is it an error of using spark 1.2.0 ? > > > Thanks, > Ronen >
