title: Does spark-submit parameters work in local mode?
body: <p>When I run <code>spark-submit --master local[10] --num-executors 8 --executor-cores 5 --executor-memory 5g foo.jar</code>,which means I am running an application in local mode,will <code>--num-executors 8 --executor-cores 5 --executor-memory</code> work together with <code>local[10]</code>? If not,which parameters will decide the resources allocation?</p>
  <p>In other words,does <code>--num-executors 8 --executor-cores 5 --executor-memory 5g</code> only works on yarn?In local mode,only <code>local[K]</code> works?</p>