HDFS permission problems
An error occurred while submitting the hadoop program in eclipse in Windows: org. Apache. hadoop. Security. accesscontrolexception: Permission denied: User = mango, access = write
Description: Compile hadoop program using eclipse in window and run on hadoop. the following error occurs:
11/10/28 16:05:53 info mapred. jobclient: running job: job_201110281103_0003
11/10/28 16:05:54 info mapred. jobclient: Map 0% reduce 0%
11/10/28 16:06:05 info mapred. jobclient: task id: attempt_201110281103_0003_m_000002_0, status: Failed
Org. apache. hadoop. security. accesscontrolexception: Org. apache. hadoop. security. accesscontrolexception: Permission denied: User = mango, access = write, inode = "hadoop"/inode = "tmp": hadoop: supergroup: rwxr-XR-x
At sun. Reflect. nativeconstructoraccessorimpl. newinstance0 (native method)
At sun. Reflect. nativeconstruct%cessorimpl. newinstance (nativeconstruct%cessorimpl. Java: 39)
Solution:
Modify the hadoop configuration file CONF/hdfs-site.xml on the server, locate the DFS. Permissions configuration item, and change the value to false
<Property>
<Name> DFS. Permissions </Name>
<Value> false </value>
<Description>
If "true", enable permission checking in HDFS.
If "false", permission checking is turned off,
But all other behavior is unchanged.
Switching from one parameter value to the other does not change the mode,
Owner or group of files or directories.
</Description>
</Property>
If the configuration file does not contain this content, you can add it by yourself.
After modification, it seems that the hadoop process needs to be restarted to take effect.
HDFS permission problems