https://gist.github.com/rtfpessoa/17752cbf7156bdf32c59
https://gist.github.com/codspire/41dd399912fdafbefcd2f2eb76022363
https://sparkour.urizone.net/recipes/installing-ec2/
~\.bashrc
# .bashrc
export PYSPARK_PYTHON=python35
export SPARK_HOME=/opt/spark
export JAVA_HOME=/usr/java/default
export PATH=/usr/local/bin:$SPARK_HOME/bin:$PATH
alias python=python35
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
source ~/.bashrc
python
spark-shell
pyspark