title: Submit Application to spark cluster
body: <p>I'm having trouble trying to submit an application (job) to a spark (1.0.0) cluster, I already setup the master and attached a worker to it (or at least that's what the WebUI says) following this guide <a href="http://spark.apache.org/docs/latest/spark-standalone.html" rel="nofollow">http://spark.apache.org/docs/latest/spark-standalone.html</a> with a pre-builded version that I downloaded from the site... the thing is that when I try to submit an application to the cluster I get the following error:</p>
  
  <pre><code>Exception in thread "main" java.lang.ClassNotFoundException: org.apache.spark.examples.JavaWordCount.java
     at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
     at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:270)
     at org.apache.spark.deploy.SparkSubmit$.launch(SparkSubmit.scala:289)
     at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:55)
     at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
  </code></pre>
  
  <p>now this is the script I'm using, just as it says here <a href="http://spark.apache.org/docs/latest/submitting-applications.html" rel="nofollow">http://spark.apache.org/docs/latest/submitting-applications.html</a>:</p>
  
  <pre><code>./bin/spark-submit --verbose --master spark://roman-XPS-L501X:7077 --class org.apache.spark.examples.JavaWordCount.java JavaWordCount.jar
  </code></pre>
  
  <p>I exported the jar myself and it's in place, also the app is one of the examples given so I assume that nothing is wrong with it. I appreciate any help and I thank you in advance. Also if somebody could explain to me what is the "driver program" that appears and what is its function in the cluster, as you could imagine I'm having a bit of trouble understanding this.</p>