After reading of Zeppelin's dependence on Spark, I tried the same code with %spark and I get this error:
org.apache.spark.SparkException: Found both spark.driver.extraClassPath and SPARK_CLASSPATH. Use only the former. Here's the problem: that variable isn't set in my Spark configuration, SPARK_CLASSPATH isn't set in my environment, and it seems I have no way to effect Zeppelin's spark-submit whatsoever. I don't know where it is getting both spark.driver.extraClassPath and SPARK_CLASSPATH from, it isn't my environment! Russ On Fri, Dec 9, 2016 at 7:43 PM, Russell Jurney <russell.jur...@gmail.com> wrote: > I can't get Zeppelin to print hello world using Python. What am I doing > wrong? > > I installed Zeppelin like so: > > wget -P /tmp/ > http://www-us.apache.org/dist/zeppelin/zeppelin-0.6.2/zeppelin-0.6.2-bin-all.tgz > mkdir zeppelin > tar -xvzf /tmp/zeppelin-0.6.2-bin-all.tgz -C zeppelin --strip-components=1 > > > Then I created a new notebook, and typed: > > %python > > print("HELLO WORLD!") > > > The interface shows "PENDING" and never returns. Spark is installed. > PySpark otherwise works locally without any problems. The log output shows: > > WARN [2016-12-09 19:36:21,422] ({qtp2083562754-49} > SecurityRestApi.java[ticket]:86) - {"status":"OK","message":""," > body":{"principal":"anonymous","ticket":"anonymous","roles":"[]"}} > INFO [2016-12-09 19:36:21,824] ({qtp2083562754-51} > NotebookServer.java[onOpen]:97) - New connection from 0:0:0:0:0:0:0:1 : > 51607 > INFO [2016-12-09 19:36:28,065] ({qtp2083562754-48} > NotebookServer.java[sendNote]:433) - New operation from 0:0:0:0:0:0:0:1 : > 51607 : anonymous : GET_NOTE : 2C5F84PHC > INFO [2016-12-09 19:36:40,129] ({pool-1-thread-3} > SchedulerFactory.java[jobStarted]:131) > - Job paragraph_1481340988011_1876695554 started by scheduler > org.apache.zeppelin.interpreter.remote.RemoteInterpretershared_ > session1606101390 > INFO [2016-12-09 19:36:40,129] ({pool-1-thread-3} > Paragraph.java[jobRun]:252) - run paragraph 20161209-193628_310443663 using > python org.apache.zeppelin.interpreter.LazyOpenInterpreter@7962cf7b > > I don't know what to try to debug this because there is no error. I am on > OS X 10.11. My Spark is the latest, 2.0.2. Thanks! > -- > Russell Jurney twitter.com/rjurney russell.jur...@gmail.com relato.io > -- Russell Jurney twitter.com/rjurney russell.jur...@gmail.com relato.io