I am getting exception as 'input path doesn't exist', what am i doing wrong?


2 Answer(s)


hi Siri,

Please confirm if this is an hdfs path and not a local file system path "/home/cloudera/dezyre/hadoop_input_wordcount.txt".

If you are executing the command as "clooudera" user execute these steps
1) hdfs dfs -put /tmp/wordcount.txt wordcount.txt (this will put the file from local filesystem to hadoop filesystem )

2) execute the below command:
hadoop jar hadoop-examples.jar wordcount wordcount.txt wordcount1

3) after execution see that the output files are created
hdfs dfs -ls wordcount1
hdfs dfs -cat wordcount/part*

Thanks

Thanks, it worked.