Created
January 28, 2019 05:46
-
-
Save mstump/61d0d9052b358ad51168ee6df22fda39 to your computer and use it in GitHub Desktop.
This file contains 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 | |
echo "deb http://ftp.de.debian.org/debian testing main" >> /etc/apt/sources.list | |
echo 'APT::Default-Release "stable";' | tee -a /etc/apt/apt.conf.d/00local | |
apt-get update | |
apt-get -t testing -y install python3.7 python-dev build-essential python3-pip | |
easy_install3 -U pip | |
# Install requirements | |
pip3 install --upgrade google-cloud | |
pip3 install --upgrade google-api-python-client | |
pip3 install --upgrade pytz | |
# Setup python3 for Dataproc | |
echo "export PYSPARK_PYTHON=python3" | tee -a /etc/profile.d/spark_config.sh /etc/*bashrc /usr/lib/spark/conf/spark-env.sh | |
echo "export PYTHONHASHSEED=0" | tee -a /etc/profile.d/spark_config.sh /etc/*bashrc /usr/lib/spark/conf/spark-env.sh | |
echo "spark.executorEnv.PYTHONHASHSEED=0" >> /etc/spark/conf/spark-defaults.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment