#insert those command in ~/.bashrc file export PYTHONPATH=$SPARK_HOME/python:$SPARK_HOME/python/lib/py4j-0.10.8.1-src.zip:$PYTHONPATH export PATH=$SPARK_HOME/bin:$SPARK_HOME/python:$PATH