What is the difference between submitting a EMR step as below vs running a spark submit on master node of the EMR cluster.
EMR step
aws emr add-steps --cluster-id j-2AXXXXXXGAPLF --steps Type=Spark,Name="Spark Program",ActionOnFailure=CONTINUE,Args=[--class,org.apache.spark.examples.SparkPi,/usr/lib/spark/lib/spark-examples.jar,10]
Spark Submit
spark-submit --master yarn --deploy-mode cluster my_spark_app.py my_hdfs_file.csv
Will running the spark submit directly on master node make it distributed between core nodes. What is the change in performance between these two methods?Which is a better approach