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-18-2017 01:32 PM
When running spark code in Zeppelin via Livy interpreter, I only see a few containers allocated in yarn. What settings do I need to change to make sure I leverage full cluster capacity? I'm using a cluster created by Hortonworks Datacloud on AWS
Created 03-19-2017 08:03 PM
@Ward Bekker, Firstly, find out the correct configuration in spark to occupy a full cluster. You will need to tune num of executors, executor cores, memory, driver memory etc.
References:
https://community.hortonworks.com/questions/56240/spark-num-executors-setting.html
After figuring out the correct configs, you can use one of the below approaches to set up zeppelin and livy interpreter.
1) You can set SPARK_SUBMIT_OPTIONS in conf/zeppelin-env.sh to specify number of executors, executor cores, memory, driver memory etc . ( This config will be applied on all the spark & livy interpreters )
export SPARK_SUBMIT_OPTIONS="--num-executors X --executor-cores Y --executor-memory Z"
2) Set configs in livy interpreter. Open livy interpreter page and add below configs in livy interpreter.
livy.spark.executor.instances X livy.spark.executor.cores Y livy.spark.executor.memory Z
Created 03-19-2017 08:03 PM
@Ward Bekker, Firstly, find out the correct configuration in spark to occupy a full cluster. You will need to tune num of executors, executor cores, memory, driver memory etc.
References:
https://community.hortonworks.com/questions/56240/spark-num-executors-setting.html
After figuring out the correct configs, you can use one of the below approaches to set up zeppelin and livy interpreter.
1) You can set SPARK_SUBMIT_OPTIONS in conf/zeppelin-env.sh to specify number of executors, executor cores, memory, driver memory etc . ( This config will be applied on all the spark & livy interpreters )
export SPARK_SUBMIT_OPTIONS="--num-executors X --executor-cores Y --executor-memory Z"
2) Set configs in livy interpreter. Open livy interpreter page and add below configs in livy interpreter.
livy.spark.executor.instances X livy.spark.executor.cores Y livy.spark.executor.memory Z
Created 03-19-2017 08:59 PM
Thx @yvora !