Skip to content

Instantly share code, notes, and snippets.

@datitran
Created November 7, 2016 14:34
Show Gist options
  • Save datitran/0d928cf59bf701634f37b01bc2af0db0 to your computer and use it in GitHub Desktop.
Save datitran/0d928cf59bf701634f37b01bc2af0db0 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# bind conda to spark
echo -e "\nexport PYSPARK_PYTHON=/home/hadoop/conda/bin/python" >> /etc/spark/conf/spark-env.sh
echo "export PYSPARK_DRIVER_PYTHON=/home/hadoop/conda/bin/jupyter" >> /etc/spark/conf/spark-env.sh
echo "export PYSPARK_DRIVER_PYTHON_OPTS='notebook --no-browser --ip=$1'" >> /etc/spark/conf/spark-env.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment