title: Why does spark-submit fail with "IllegalArgumentException: Missing application resource."?
body: <p>When I create the jar of my Spark application and try to run it using <code>spark-submit</code>, I am getting the following error.</p>
  
  <p>This is the command I used to run. </p>
  
  <pre><code>spark-submit --executor-memory 1g --jars s3://test-data-lab-users/spachari/test/test_2.10-1.0.jar
  </code></pre>
  
  <p>This is the error i am getting. Does this mean I have not passed correct parameters in my spark-submit?</p>
  
  <pre><code>Exception in thread "main" java.lang.IllegalArgumentException: Missing application resource.
      at org.apache.spark.launcher.CommandBuilderUtils.checkArgument(CommandBuilderUtils.java:241)
      at org.apache.spark.launcher.SparkSubmitCommandBuilder.buildSparkSubmitArgs(SparkSubmitCommandBuilder.java:160)
      at org.apache.spark.launcher.SparkSubmitCommandBuilder.buildSparkSubmitCommand(SparkSubmitCommandBuilder.java:276)
      at org.apache.spark.launcher.SparkSubmitCommandBuilder.buildCommand(SparkSubmitCommandBuilder.java:151)
      at org.apache.spark.launcher.Main.main(Main.java:86)
  Command exiting with ret '1'
  </code></pre>