Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

zeppelin pyspark cannot run with different minor version

avatar
Contributor

HDP 2.5.3 Spark 1.6.x.2.5 Zeppelin Notebook 0.6.0.2.5

Just installed zeppelin, trying to run some of the examples. On the zeppelin notebook server I have python 2.7 installed (/usr/bin/python). On the other nodes in the cluster I have python 2.6 (/usr/bin/python) and 2.7 (/usr/local/bin/python) installed.

I am runnning the "Hello World" example in zeppelin. Most steps run, but some fail with this error

Exception: Python in worker has different version 2.6 than that in driver 2.7, PySpark cannot run with different minor versions

In the stack trace I can see the node that I assume is the worker. It is not a spark client but I created /etc/spark/conf/spark-env.sh with the following

export PYSPARK_PYTHON=/usr/local/bin/python

export PYSPARK_DRIVER_PYTHON=python

pointing to python 2.7, the same as the version that is running on the Zeppelin notebook.

I am still getting the error. I am leery about removing the python 2.6 on the other nodes but am not sure how to get around this.

1 ACCEPTED SOLUTION
1 REPLY 1

avatar