export PYSPARK_PYTHON=*/bin/python
$SPARK_HOME/bin/spark-submit --conf "spark.yarn.dist.archives=/home/anaconda2.tar.gz" --conf "spark.executorEnv.PYSPARK_PYTHON=/home/anaconda2.tar.gz/anaconda2/bin/python" --conf spark.cleaner.periodicGC.interval=60 --conf spark.cleaner.referenceTracking.blocking=false --master yarn --deploy-mode client --queue root.bigw --num-executors 5 --executor-cores 5 --executor-memory 5g --driver-memory 6g /home/user/er.py