Created
March 8, 2016 09:57
-
-
Save oluies/f34f4c471f575ad3519e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
. /etc/spark/conf/spark-env.sh | |
export PYSPARK_SUBMIT_ARGS="--master yarn-client pyspark-shell" | |
# Spark master url. eg. spark://master_addr:7077. Leave empty if you want to use local mode | |
export MASTER=yarn-client | |
export SPARK_YARN_JAR=hdfs:///apps/zeppelin/zeppelin-spark-0.5.5-SNAPSHOT.jar | |
export JAVA_HOME=/usr/jdk64/jdk1.8.0_60 | |
# Additional jvm options. for example, export ZEPPELIN_JAVA_OPTS="-Dspark.executor.memory=8g -Dspark.cores.max=16" | |
export JAVA_OPTS="-Dhdp.version=2.4.0.0-169 -Dspark.executor.memory=1024m -Dspark.executor.instances=2 -Dspark.yarn.queue=default" | |
## | |
# (required) When it is defined, load it instead of Zeppelin embedded Spark libraries | |
export SPARK_HOME=/usr/hdp/current/spark-client/ | |
export PYTHONPATH="${SPARK_HOME}/python:${SPARK_HOME}/python/lib/py4j-0.8.2.1-src.zip" | |
export SPARK_YARN_USER_ENV="PYTHONPATH=${PYTHONPATH}" | |
echo $SPARK_HOME | |
jupyter notebook --port 8889 --notebook-dir=/home/xadmin/jupyternotebooks --ip='*' --no-browser --profile=pyspark | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment