Skip to content

Instantly share code, notes, and snippets.

@garystafford
Last active October 14, 2020 21:37
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 garystafford/3c4621a2c715c4a73674b8fb100d91ff to your computer and use it in GitHub Desktop.
Save garystafford/3c4621a2c715c4a73674b8fb100d91ff to your computer and use it in GitHub Desktop.
#!/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