Exception:org.apache.hadoop.security.AccessControlException: Permission denied: user=HP, access=WRITE, inode="/data/test":bigdata:supergroup:drwxr-xr-x
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:319)
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:292)
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:213)
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:190)
timestamp:1510407964664
Process finished with exit code 0
解决方法:
hadoop/etc/hadoop/hdfs-site.xml
增加:
<property>
<name>dfs.permissions</name>
<value>false</value>
</property>