Last active
January 3, 2017 06:21
-
-
Save mGalarnyk/7fe15c8b1ecc25d06afb18ef6fce22c0 to your computer and use it in GitHub Desktop.
Setting the path for spark for the blog tutorial https://medium.com/@GalarnykMichael/install-spark-on-mac-pyspark-453f395f240b#.6md1dipy3
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
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