AnsweredAssumed Answered

DEV 301 Exercise 3.1 - mkdirs failed for /var/mapr/cluster/mapred/jobTracker/staging/user01/.staging

Question asked by abisaria on Oct 25, 2015
Latest reply on Jan 22, 2016 by maprcommunity
Guys, i am trying to complete Exercise 3.3 and got below error while rerunning the code, it looks like permission error.  anyone knows how to fix it ? please let me know. Thanks.

[user01@maprdemo RECEIPTS_LAB]$ ./rerun.sh
2015-10-25 16:54:03,0312 ERROR JniCommon fs/client/fileclient/cc/jni_MapRClient.cc:1326 Thread: 21305 mkdirs failed for /var/mapr/cluster/mapred/jobTracker/staging/user01/.staging, error 13
Exception in thread "main" org.apache.hadoop.security.AccessControlException: 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)
        at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:882)
        at org.apache.hadoop.mapreduce.Job.submit(Job.java:574)
        at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:604)
        at Receipts.ReceiptsDriver.run(ReceiptsDriver.java:44)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
        at Receipts.ReceiptsDriver.main(ReceiptsDriver.java:51)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
[user01@maprdemo RECEIPTS_LAB]$



Outcomes