欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

hive启动hiveservice2报错User: kate is not allowed to impersonate kate (state=08S01,code=0)

程序员文章站 2022-07-15 07:54:26
...

错误信息:


20/11/10 23:23:44 [main]: WARN jdbc.HiveConnection: Failed to connect to hadoop01:10000
Error: Could not open client transport with JDBC Uri: jdbc:hive2://hadoop01:10000: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: kate is not allowed to impersonate kate (state=08S01,code=0)

原因是该用户没有操作权限
解决办法:
原因:hiveserver2增加了权限控制,需要在hadoop的core-site.xml配置文件中配置

<property>
    <name>hadoop.proxyuser.xxx.hosts</name>
    <value>*</value>
</property>
<property>
    <name>hadoop.proxyuser.xxx.groups</name>
    <value>*</value>
</property>

“*”表示可通过超级代理“xxx”操作hadoop的用户、用户组和主机

hive启动hiveservice2报错User: kate is not allowed to impersonate kate (state=08S01,code=0)

相关标签: hive