AnsweredAssumed Answered

DEV 301 - Exercise 1.1 - word count doesn't work

Question asked by saiamarreddy on Oct 15, 2015
Latest reply on Oct 25, 2015 by saiamarreddy
Hi,

I am able to complete the below steps for Exercise 1.1 give in the PDF file.

1. Create a directory in your home directory as follows:
$ mkdir /user/user01/1.1

2.Create a file in that directory as follows.
echo "Hello world! Hello" > /user/user01/1.1/in.txt

But the third step of running the wordcount application against the file is failing.

 3. Run  the MRv1 version of the wordcount application against the input file.
  hadoop1 jar /opt/mapr/hadoop/hadoop-0.20.2/hadoop-0.20.2-dev-examples.jar wordcount /user/user01/1.1/in.txt /user/user01/1.1/OUT

I am getting mkdirs access failed errors. Unable to copy the error message from sandbox portal.

Brief error message given here.

User user01(user id 2001) has been denied access to create .staging
   at com.mapr.fs.MapRFileSystem.makeDir(MapRFileSystem.java:1157)
   at com.mapr.fs.MapRFileSystem.mkdirs(MapRFileSystem.java:1177)
   at org.apache.hadoop.mapreduce.JobSubmissionFiles.getStagingDir(JobSubmissionFiles.java:126)
   at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:888)
   at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:882)
   at java.security.AccessController.doPrivileged(Native Method)
   at javax.security.auth.Subject.doAs(Subject.java:415)
   at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1595)

and so on...

Can someone please help me resolving this issue?

Regards
Amar

Outcomes