Skip to content

Instantly share code, notes, and snippets.

@nehalecky
Last active January 18, 2016 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nehalecky/9258c01fb2077f51545a to your computer and use it in GitHub Desktop.
Save nehalecky/9258c01fb2077f51545a to your computer and use it in GitHub Desktop.
Shell script to run install Python 3, make it default, and export PYTHONHASHSEED
#!/bin/bash
apt-get -y install python3
echo "export PYSPARK_PYTHON=python3" | tee -a /etc/profile.d/spark_config.sh /etc/*bashrc
echo "export PYTHONHASHSEED=123" | tee -a /etc/profile.d/spark_config.sh /etc/*bashrc /usr/lib/spark/conf/spark-env.sh
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment