Skip to content

Instantly share code, notes, and snippets.

@mGalarnyk
Last active January 3, 2017 06:21
Show Gist options
  • Save mGalarnyk/7fe15c8b1ecc25d06afb18ef6fce22c0 to your computer and use it in GitHub Desktop.
Save mGalarnyk/7fe15c8b1ecc25d06afb18ef6fce22c0 to your computer and use it in GitHub Desktop.
export SPARK_PATH=~/spark-1.6.0-bin-hadoop2.6
export PYSPARK_DRIVER_PYTHON="jupyter"
export PYSPARK_DRIVER_PYTHON_OPTS="notebook"
#For python 3, You have to add the line below or you will get an error
# export PYSPARK_PYTHON=python3
alias snotebook='$SPARK_PATH/bin/pyspark --master local[2]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment