title: Spark-submit with properties-file
body: <p>I have tried unsuccessfully to run spark-submit with properties specified in a config file.</p>
  
  <p>I can submit a job using:</p>
  
  <pre><code>spark_home/spark-submit \
  --class MyClass \
  --master spark://my_master \
  --files test.config \
  --jars build/jars/MyProject.jar, build/jars/Config.jar
  </code></pre>
  
  <p>But when I copy the same to my properties file:</p>
  
  <pre><code>spark.class   MyClass
  spark.master  spark://my_master
  spark.files   test.config
  spark.jars    build/jars/MyProject.jar, build/jars/Config.jar
  </code></pre>
  
  <p>On trying to use this file with spark-submit, I get an error: java.lang.IllegalArgumentException: Missing application resource</p>
  
  <pre><code>spark_home/spark-submit \
  --properties-file  conf/properties.conf
  </code></pre>
  
  <p>Are there any additional arguments I need to provide? I thought I had used the same arguments, but it seems I am still missing a step.</p>