Last active
January 18, 2016 20:56
-
-
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
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/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