Invalid Input path
3 Answer(s)
DeZyre Support
hi Meena,
Looks like you are working on Cloudera. the HDFS location is "/user/cloudera" but your input path is "/wordcount/" which is owned by root.
I suggest that you copy the file to "/user/cloudera and provide the path likethis
hadoop jar dezyrewordcount.jar com.dezyre.DeZyreWordCount /user/cloudera/wordcount/input/words.txt /user/cloudera/wordcount/output/
Nov 29 2015 04:35 PM
Looks like you are working on Cloudera. the HDFS location is "/user/cloudera" but your input path is "/wordcount/" which is owned by root.
I suggest that you copy the file to "/user/cloudera and provide the path likethis
hadoop jar dezyrewordcount.jar com.dezyre.DeZyreWordCount /user/cloudera/wordcount/input/words.txt /user/cloudera/wordcount/output/
Meena
How do I navigate to user directory? I do not seem to be able to find it.
Nov 30 2015 12:40 PM
Abhijit-Dezyre Support
Hi Meena,
Thanks for sharing the error. As I can see you are getting the error because cloudera won't able to locate the input file.
The default hdfs path is /user/cloudera.
See this error line:
hdfs://localhost.localdomain:8020/wordcount/input/words.txt
It says file not found at this location.
For you the case - when you putting files in the hdfs please use input file path /user/cloudera/wordcount/input/file.txt
Before run check whether file exists on the location or not.
Use the following command - hadoop fs -ls /wordcount/input/
Hope this helps.
Thanks
Nov 30 2015 04:40 PM
Thanks for sharing the error. As I can see you are getting the error because cloudera won't able to locate the input file.
The default hdfs path is /user/cloudera.
See this error line:
hdfs://localhost.localdomain:8020/wordcount/input/words.txt
It says file not found at this location.
For you the case - when you putting files in the hdfs please use input file path /user/cloudera/wordcount/input/file.txt
Before run check whether file exists on the location or not.
Use the following command - hadoop fs -ls /wordcount/input/
Hope this helps.
Thanks