title: Deploy mode in "SPARK-SUBMIT"
body: <p>In SPARK-SUBMIT , what is the difference between "yarn" , "yarn-cluster" , "yarn-client" deploy modes ?</p>
  
  <pre><code>./bin/spark-submit \
    --class org.apache.spark.examples.SparkPi \
    --master yarn-cluster \  # can also be `yarn-client` for client mode
    --executor-memory 20G \
    --num-executors 50 \
    /path/to/examples.jar \
    1000
  </code></pre>
  
  <p><a href="https://spark.apache.org/docs/1.1.0/submitting-applications.html" rel="nofollow">https://spark.apache.org/docs/1.1.0/submitting-applications.html</a></p>