title: Spark-submit not working when application jar is in hdfs
body: <p>I'm trying to run a spark application using bin/spark-submit. When I reference my application jar inside my local filesystem, it works. However, when I copied my application jar to a directory in hdfs, i get the following exception: </p>
  
  <blockquote>
    <p>Warning: Skip remote jar hdfs://localhost:9000/user/hdfs/jars/simple-project-1.0-SNAPSHOT.jar.
    java.lang.ClassNotFoundException: com.example.SimpleApp</p>
  </blockquote>
  
  <p>Here's the command:</p>
  
  <p><code>$ ./bin/spark-submit --class com.example.SimpleApp --master local hdfs://localhost:9000/user/hdfs/jars/simple-project-1.0-SNAPSHOT.jar</code></p>
  
  <p>I'm using hadoop version 2.6.0, spark version 1.2.1</p>