You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@zeppelin.apache.org by Stas Zubarev <sz...@gmail.com> on 2015/05/06 03:13:10 UTC

pyspark interpreter on HDP 2.2

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

Re: pyspark interpreter on HDP 2.2

Posted by Ram Venkatesh <rv...@hortonworks.com>.
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: "users@zeppelin.incubator.apache.org<ma...@zeppelin.incubator.apache.org>"
Date: Wednesday, May 6, 2015 at 6:55 AM
To: "users@zeppelin.incubator.apache.org<ma...@zeppelin.incubator.apache.org>"
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 <mo...@apache.org>> 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 <sz...@gmail.com>> 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


Re: pyspark interpreter on HDP 2.2

Posted by Stas Zubarev <sz...@gmail.com>.
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 <mo...@apache.org> 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?
>
>
> Do you see all "%spark, %pyspark, %sql, %dep" together?
>
> Thanks,
> moon
>
>
> On Wed, May 6, 2015 at 2:13 AM Stas Zubarev <sz...@gmail.com> 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
>>
>

Re: pyspark interpreter on HDP 2.2

Posted by moon soo Lee <mo...@apache.org>.
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?


Do you see all "%spark, %pyspark, %sql, %dep" together?

Thanks,
moon

On Wed, May 6, 2015 at 2:13 AM Stas Zubarev <sz...@gmail.com> 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
>