I am getting an error when running the basic Hadoop wordcout tutorial in eclipse on my Cloudera VM. The error is:
Input path does not exist: file:/user/cloudera/wordcount/input
However, this directory does exist, I've specifically created it and I'm staring at it in my HDFS file browser.
Screenshot of my command line query and browser.
I have copy pasted the directory from the command you see into my run configuration in eclipse, these are my arguments:
/user/cloudera/wordcount/input /user/cloudera/wordcount/output
And the code itself has not been modified from the example I downloaded, the relevant lines are:
FileInputFormat.addInputPath(job, new Path(args[0]));
FileOutputFormat.setOutputPath(job, new Path(args[1]));
Edit:
hadoop jar /home/cloudera/examples/wordcount.jar WordCount /user/cloudera/wordcount/input /user/cloudera/wordcount/output
This command works 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.
Why won't eclipse run this task properly? It works from the terminal.
file:/user/is different fromhdfs:///user/. That is probably where your confusion is. - OneCricketeer