Running Hadoop on Windows 7 using Cygwin - PriviledgedActionException as: PC reason: java.io.IOException: Failed to set path permissions:

I am using Hadoop 1.1.2 distribution. When I try to run the wordcount example, I get the following error.

Input command:

'D: /Files/hadoop-1.1.2/hadoop-1.1.2/bin/hadoop' jar 'D: /Files/hadoop-1.1.2/hadoop-1.1.2/hadoop-examples-1.1. 2.jar 'inputcount input output

Result:

07/13/03 11:02:42 WARN util.NativeCodeLoader: it is not possible to load the native-hadoop library for your platform ... using the builtin-java classes, where applicable 13/07/03 11:02:42 ERROR security.UserGroupInformation : PriviledgedActionException as: reason PC: java.io.IOException: failed to set path permissions: \ tmp \ hadoop-PC \ mapred \ staging \ PC119237705.staging until 0700 java.io.IOException: Failed to set path permissions: \ tmp \ hadoop-PC \ mapred \ staging \ PC119237705.staging until 0700 at org.apache.hadoop.fs.FileUtil.checkReturnValue (FileUtil.java:689) at org.apache.hadoop.fs.FileUtil.setPermission (FileUtil.java:662 ) at org.apache.hadoop.fs.RawLocalFileSystem.setPermission (RawLocalFileSystem.java:509) at org.apache.hadoop.fs.RawLocalFileSystem.mkdirs (RawLocalFileSystem.javahaps44) on org.apache.hadoop.fs.FilterFileSystem.mkdirs (FilterFileSystem.java:189) at org.apache.hadoop.mapreduce.JobSubmissionFiles.getStagingDir (JobSubmissionFiles.java:116) at org.apache.hadoop.mapred.JobClient $ 2.run (JobClient.java:918) at org.apache.hadoop.mapred.JobClient $ 2.run (JobClient.java:912) in java.security.AccessController.doPrivileged (native method) in javax.security.auth.Subject.doAs ( Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs (UserGroupInformation.java:1149) at org.apache.hadoop.mapred.JobClient.submitJobInternal (JobClient.java:912) on org.apache.hadoop .mapreduce.Job.submit (Job.java∗00) at org.apache.hadoop.mapreduce.Job.waitForCompletion (Job.java UP30) at org.apache.hadoop.examples.WordCount.main (WordCount.java:67 ) at sun.reflect.NativeMethodAccessorImpl.invoke0 (native method) at sun.reflect.NativeMethodAcces sorImpl.invoke (NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) in java.lang.reflect.Method.invoke (Method.java:606) at org.apacheil.hadoop.hadoop .ProgramDriver $ ProgramDescription.invoke (ProgramDriver.java:68) at org.apache.hadoop.util.ProgramDriver.driver (ProgramDriver.java:139) at org.apache.hadoop.examples.ExampleDriver.main (ExampleDriver.java:64 ) at sun.reflect.NativeMethodAccessorImpl.invoke0 (native method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl. java.lref.lava Method.invoke (Method.java:606) at org.apache.hadoop.util.RunJar.main (RunJar.java:156)

I have a problem finding the specific cause of this error. Please, help.

+2
cygwin hadoop
source share
1 answer

Looks like you clicked this one . You may find this patch useful. But before that, you can try changing the permissions of the directory to 755 and restart the task.

+4
source share

All Articles