I am running application by this command ./spark-submit --master yarn --deploy-mode cluster --packages org.mongodb.spark:mongo-spark-connector_2.11:2.2.0 --class com.mmi.process