title: File Not Found - Spark standalone cluster
body: <p>I have two machines named: ubuntu1 and ubuntu2.</p>
  
  <p>In ubuntu1, I started the master node in Spark Standalone Cluster and ubuntu2 I started with a worker (slave).</p>
  
  <p>I am trying to execute the example <a href="https://github.com/apache/spark/blob/master/examples/src/main/java/org/apache/spark/examples/JavaWordCount.java" rel="nofollow noreferrer">workCount</a> available on github.</p>
  
  <p>When I submit the application, the worker send an error message</p>
  
  <p><strong>java.io.FileNotFoundException</strong>: File file:/home/ubuntu1/demo/test.txt does not exist.</p>
  
  <p>My command line is</p>
  
  <pre><code>./spark-submit --master spark://ubuntu1-VirtualBox:7077 --deploy-mode cluster --clas br.com.wordCount.App -v --name"Word Count" /home/ubuntu1/demo/wordCount.jar /home/ubuntu1/demo/test.txt
  </code></pre>
  
  <p>The file test.txt has only to stay in one machine ?</p>
  
  <p><strong>Note:</strong> The master and the worker are in different machine.</p>
  
  <p>Thank you</p>