title: Spark configuration priority
body: <p>Does there any difference or priority between specifying spark application configuration in the code :</p>
  
  <pre><code>SparkConf().setMaster(yarn)
  </code></pre>
  
  <p>and specifying them in command line</p>
  
  <pre><code>spark-submit --master yarn
  </code></pre>