spark-submit: Difference between " --master local[n]" and "--master local --executor-cores m"
<p>I have a dual-core machine (with 2 threads on each core). I run a Spark job with 2 different <code>spark-submit</code> parameters.</p>

<pre><code>spark-submit --master local[4]

spark-submit --master local --executor-cores 2
</code></pre>

<p>Is there really any difference between the two examples above? I am trying to get Spark to use 4 total threads for Spark "tasks", 2 threads on each physical core.</p>