当前位置:首页 > 大数据 > 正文内容

AccessControlException(Permission denied: user=anonymous, access=WRITE, inode="/user"

2019-09-12 | 分类:大数据 | 评论:0人 | 浏览:34次

hive 安装运行权限错误Permission denied: user=hive, access=WRITE,

select count(*) is not working in beeline Permission denied: user=anonymous, access=WRITE, inode="/user/anonymous":hdfs:hdfs:drwxr-xr-x

 

 

2019-08-27 11:07:21,967 INFO  [HiveServer2-Background-Pool: Thread-244]: exec.Utilities (Utilities.java:getBaseWork(390)) – PLAN PATH = hdfs://nameservice1/tmp/hive/anonymous/3aa21805-bc14-425b-ac78-14e51835d7b0/hive_2019-08-27_11-07-20_873_3478767183577397099-4/-mr-10004/4bf4a222-3a17-428e-98e9-a903b7b9cd6a/map.xml
2019-08-27 11:07:21,967 INFO  [HiveServer2-Background-Pool: Thread-244]: exec.Utilities (Utilities.java:getBaseWork(390)) – PLAN PATH = hdfs://nameservice1/tmp/hive/anonymous/3aa21805-bc14-425b-ac78-14e51835d7b0/hive_2019-08-27_11-07-20_873_3478767183577397099-4/-mr-10004/4bf4a222-3a17-428e-98e9-a903b7b9cd6a/reduce.xml
2019-08-27 11:07:21,986 ERROR [HiveServer2-Background-Pool: Thread-244]: exec.Task (SessionState.java:printError(960)) – Job Submission failed with exception ‘org.apache.hadoop.security.AccessControlException(Permission denied: user=anonymous, access=WRITE, inode="/user":hdfs:supergroup:drwxr-xr-x
    at org.apache.hadoop.hdfs.server.namenode.DefaultAuthorizationProvider.checkFsPermission(DefaultAuthorizationProvider.java:279)
    at org.apache.hadoop.hdfs.server.namenode.DefaultAuthorizationProvider.check(DefaultAuthorizationProvider.java:260)
    at org.apache.hadoop.hdfs.server.namenode.DefaultAuthorizationProvider.check(DefaultAuthorizationProvider.java:240)
    at org.apache.hadoop.hdfs.server.namenode.DefaultAuthorizationProvider.checkPermission(DefaultAuthorizationProvider.java:162)
    at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:152)
    at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkPermission(FSDirectory.java:3877)
    at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkPermission(FSDirectory.java:3860)
    at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkAncestorAccess(FSDirectory.java:3842)

 

解决办法:

修改hdfs参数  dfs.permissions=false

 

 

root用户无法操作hdfs

有2种解决:

1.修改hdfs参数  dfs.permissions=false

2.赋权限给root

我选择的是修改参数

步骤1.

image

2.重启HDFS组件,让其生效。

来源:赵大虾博客(微信号/QQ号:),转载请注明出处,谢谢!

  • 评论:(0)

已有 0 位网友发表了一针见血的评论,你还等什么?

◎欢迎参与讨论!

傲笑九天志在必得, 卧薪尝胆勇者无畏

站内搜索

傲笑九天志在必得, 卧薪尝胆勇者无畏

傲笑九天志在必得, 卧薪尝胆勇者无畏