Last active
October 14, 2020 21:37
-
-
Save garystafford/3c4621a2c715c4a73674b8fb100d91ff 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 | |
set -ex | |
# update/upgrade and install htop | |
sudo apt-get update -y && sudo apt-get upgrade -y | |
sudo apt-get install htop | |
# install required python packages | |
python3 -m pip install --user --upgrade pip | |
python3 -m pip install -r requirements.txt --upgrade | |
# download latest postgres driver jar | |
POSTGRES_JAR="postgresql-42.2.17.jar" | |
if [ -f "$POSTGRES_JAR" ]; then | |
echo "$POSTGRES_JAR exist" | |
else | |
wget -nv "https://jdbc.postgresql.org/download/${POSTGRES_JAR}" | |
fi | |
# spark-submit logging level from INFO to WARN | |
sudo cp log4j.properties /usr/local/spark/conf/log4j.properties |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment