hadoop权限问题:Permission denied: user=root, access=WRITE, inode=“/“:hdfs:supergroup:drwxr-xr-x

如图:hadoop权限问题:Permission denied: user=root, access=WRITE, inode=“/“:hdfs:supergroup:drwxr-xr-x

解决:

方法一:修改Hadoop配置文件hdfs-site.xml 里的权限。

hadoop权限问题:Permission denied: user=root, access=WRITE, inode=“/“:hdfs:supergroup:drwxr-xr-x

最后一步:重启hdfs组件。 

方法二:

hadoop权限问题:Permission denied: user=root, access=WRITE, inode=“/“:hdfs:supergroup:drwxr-xr-x

 方法三:su hdfs 查看user的权限,修改权限为777.

hadoop权限问题:Permission denied: user=root, access=WRITE, inode=“/“:hdfs:supergroup:drwxr-xr-x

 查看/user下面具体用户的权限,我这里为了以后不出现错误,直接将所有用户权限都设置为777

hadoop权限问题:Permission denied: user=root, access=WRITE, inode=“/“:hdfs:supergroup:drwxr-xr-x

 

 

 

上一篇:SELinux


下一篇:Java实现 LeetCode 777 在LR字符串中交换相邻字符(分析题)