I have write shell script to run spark job:
/home/ajit/deviceAnalysis.sh /usr/spark/bin/spark-submit --master yarn --deploy-mode cluster --packages org.mongod