栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

hive中User: xxx is not allowed to impersonate xxx

hive中User: xxx is not allowed to impersonate xxx

今天使用hive,插入数据是使用insert,遇到报错

INFO  : Launching Job 1 out of 3
INFO  : Starting task [Stage-1:MAPRED] in serial mode
INFO  : Number of reduce tasks determined at compile time: 1
INFO  : In order to change the average load for a reducer (in bytes):
INFO  :   set hive.exec.reducers.bytes.per.reducer=
INFO  : In order to limit the maximum number of reducers:
INFO  :   set hive.exec.reducers.max=
INFO  : In order to set a constant number of reducers:
INFO  :   set mapreduce.job.reduces=
ERROR : Job Submission failed with exception 'org.apache.hadoop.security.authorize.AuthorizationException(User: bigdata is not allowed to impersonate bigdata)'
org.apache.hadoop.security.authorize.AuthorizationException: User: bigdata is not allowed to impersonate bigdata

ERROR : FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask. User: bigdata is not allowed to impersonate bigdata
INFO  : Completed executing command(queryId=bigdata_20220114234734_7f82943d-3d16-4314-9224-c958dac724a8); Time taken: 852.104 seconds

后面发现是hive-site.xml文件出现问题,没有添加
hive.server2.enable.doAs配置
在hive目录下的conf文件下的hive-site.xml文件,添加配置

 
        hive.server2.enable.doAs
        false


然后就可以正常操作了

hive.server2.enable.doAs设置成false则,yarn作业获取到的hiveserver2用户都为hive用户。

设置成true则为实际的用户名

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/706876.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号