Hello Stas, The configuration of the cluster mode is done within the spark interpreter settings:
master yarn-client spark.driver.extraJavaOptions -Dhdp.version=<your version> spark.home /usr/hdp/current/spark-client/ spark.yarn.am.extraJavaOptions -Dhdp.version=<your version> The best way to check if it is running in yarn mode is to check the YARN RM Web UI, you should see an entry for Zeppelin. HTH Ram From: Stas Zubarev Reply-To: "[email protected]<mailto:[email protected]>" Date: Wednesday, May 6, 2015 at 6:55 AM To: "[email protected]<mailto:[email protected]>" Subject: Re: pyspark interpreter on HDP 2.2 Hi Moon Solved with total Zeppelin rebuild from scratch and configuring both SPARK_HOME env var and spark.home param (in webgui) One more question: I built Zeppelin with command "mvn clean package -Pspark-1.3 -Dhadoop.version=2.4.0 -Phadoop-2.4 -Pyarn -DskipTests" to run on HDP 2.2 Works fine for me, but how can I check if it's started in local or cluster mode? Thank you! Stas On Wed, May 6, 2015 at 12:27 AM, moon soo Lee <[email protected]<mailto:[email protected]>> wrote: Hi, Could you verify your zeppelin.interpreters property has "org.apache.zeppelin.spark.PySparkInterpreter" if you have conf/zeppelin-site.xml? Otherwise, what do you see whan you click 'gear' icon in your notebook? [cid:14d27797be69cc8ba621] Do you see all "%spark, %pyspark, %sql, %dep" together? Thanks, moon On Wed, May 6, 2015 at 2:13 AM Stas Zubarev <[email protected]<mailto:[email protected]>> wrote: Hi team Built and started Zeppelin on HDP 2.2 in cluster mode - scala, sql and md interpreters are working fine When trying to run: %pyspark print 'hello world' receive 'pyspark interpreter not found' error immediately. SPARK_HOME var is set correctly, spark.home in Zeppelin is configured also Please advise how to fix it Thank you Stas
