I have a pyspark application, which I submit using spark-submit like this:
spark-submit
spark-submit --deploy-mode cluster --master yarn --packages org.apache.spa