unable to execute wordcount program


2 Answer(s)


hi,

The program is not able to find the input file, here's the error
"Input path does not exist: hdfs://localhost.localdomain:8020/wordcount/input/words.txt"

Make sure to copy the words.txt into hdfs and re-execute the program.

Thanks

Thanks The command worked when i changed the path to the hdfs. But still i am receiving a permission error:

15/01/20 00:22:57 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same.
15/01/20 00:22:57 INFO input.FileInputFormat: Total input paths to process : 1
15/01/20 00:22:58 INFO mapred.JobClient: Running job: job_201501172041_0006
15/01/20 00:22:59 INFO mapred.JobClient: map 0% reduce 0%
15/01/20 00:23:06 INFO mapred.JobClient: Task Id : attempt_201501172041_0006_m_000002_0, Status : FAILED
org.apache.hadoop.security.AccessControlException: Permission denied: user=cloudera, access=WRITE, inode="/":hdfs:supergroup:drwxr-xr-x
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:224)
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:204)
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:149)