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]
Created 03-07-2017 09:20 PM
Hello, I followed the below tutorial to install Jupyter and all is fine:
https://hortonworks.com/hadoop-tutorial/using-ipython-notebook-with-apache-spark/
Now I want to use Spark 2 instead. I changed the spark_home to the /usr/hdp/current/spark2-client folder and trying to run the start_ipython_notebook.sh command. It says
IPYTHON and IPYTHON_OPTS are removed in Spark 2.0+. Remove these from the environment and set PYSPARK_DRIVER_PYTHON and PYSPARK_DRIVER_PYTHON_OPTS instead.
Can someone suggest what change should I make to the ipython startup script?
Created 03-08-2017 08:35 AM
From https://github.com/apache/spark/blob/master/bin/pyspark
# In Spark 2.0, IPYTHON and IPYTHON_OPTS are removed and pyspark fails to launch if either option is set in the user's environment. Instead, users should set PYSPARK_DRIVER_PYTHON=ipython to use IPython and set PYSPARK_DRIVER_PYTHON_OPTS to pass options when starting the Python driver# (e.g. PYSPARK_DRIVER_PYTHON_OPTS='notebook'). This supports full customization of the IPython# and executor Python executables.
Created 03-08-2017 08:35 AM
From https://github.com/apache/spark/blob/master/bin/pyspark
# In Spark 2.0, IPYTHON and IPYTHON_OPTS are removed and pyspark fails to launch if either option is set in the user's environment. Instead, users should set PYSPARK_DRIVER_PYTHON=ipython to use IPython and set PYSPARK_DRIVER_PYTHON_OPTS to pass options when starting the Python driver# (e.g. PYSPARK_DRIVER_PYTHON_OPTS='notebook'). This supports full customization of the IPython# and executor Python executables.
Created 03-08-2017 06:23 PM
Just what i was looking for. thanks!
Created on 01-11-2018 01:44 AM - edited 08-19-2019 12:54 AM
@Arvind Kandaswamy, can you please share the code that you used to solve the problem? It is not working for me.
Created 04-25-2018 07:48 AM
Please someone please answer