title: Hadoop MapReduce wordcount tutorial error: Input path does not exist
body: <p>I am getting an error when running the basic Hadoop wordcout tutorial in eclipse on my Cloudera VM. The error is:</p>
  
  <pre><code>Input path does not exist: file:/user/cloudera/wordcount/input
  </code></pre>
  
  <p>However, this directory <em>does</em> exist, I've specifically created it and I'm staring at it in my HDFS file browser.</p>
  
  <p><a href="https://i.stack.imgur.com/BGGte.png" rel="nofollow noreferrer">Screenshot of my command line query and browser.</a></p>
  
  <p>I have copy pasted the directory from the command you see into my run configuration in eclipse, these are my arguments:</p>
  
  <pre><code>/user/cloudera/wordcount/input /user/cloudera/wordcount/output
  </code></pre>
  
  <p>And the code itself has not been modified from the example I downloaded, the relevant lines are:</p>
  
  <pre><code>FileInputFormat.addInputPath(job, new Path(args[0]));
  FileOutputFormat.setOutputPath(job, new Path(args[1]));
  </code></pre>
  
  <p><strong><em>Edit:</em></strong></p>
  
  <pre><code>hadoop jar /home/cloudera/examples/wordcount.jar WordCount /user/cloudera/wordcount/input /user/cloudera/wordcount/output
  </code></pre>
  
  <p>This command <em>works</em> in the terminal, but when I execute the java file that I built that jar from (no changes, just export->jar file) with the arguments "/user/cloudera/wordcount/input /user/cloudera/wordcount/output" then I get the above error.</p>
  
  <p>Why won't eclipse run this task properly? It works from the terminal.</p>