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 on
02-21-2017
05:54 PM
- last edited on
04-21-2026
06:47 AM
by
GrazittiAPI
Hi I am trying to run spark jobs using hue notebook but everything runs in spark 1.6 how can I switch or select spark 2. I am running on HDP 2.5. Hope its not a silly question and thanks for any help.
,
Hi I am trying to use hue notebook on HDP2.5 to run spark jobs and I want to run them in spark 2 but it seems to stay stuck in 1.6 I am not sure how to switch or specify that I would like to run my test code in spark 2. Hopefully this is not a silly question. Super thanks for any help.
Created 02-21-2017 07:01 PM
Livy 0.2 does not work with Spark 2 that I have found. Upgrading to Livy 0.3 and modifying the livy-env.sh to:
export SPARK_HOME=/usr/hdp/current/spark2-client
export SPARK_MAJOR_VERSION=2
This also works for Zeppelin 0.7. With livy 0.2 Zeppelin was throwing a 404 error attempting to get the version from livy.
Created 02-21-2017 07:01 PM
Livy 0.2 does not work with Spark 2 that I have found. Upgrading to Livy 0.3 and modifying the livy-env.sh to:
export SPARK_HOME=/usr/hdp/current/spark2-client
export SPARK_MAJOR_VERSION=2
This also works for Zeppelin 0.7. With livy 0.2 Zeppelin was throwing a 404 error attempting to get the version from livy.
Created 02-22-2017 11:17 AM
Hi jhorsch, thank you so much for taking the time to answer. You are an absolute superstar!!!! It worked a charm just perfect! Our Data Scientist says she owes you a beer!!!
Super thanks
Stephen