[已解决]报错:Error: Could not open client transport with JDBC Uri: jdbc:hive2://hadoop102:10000

2021-05-07 15:00:05 浏览数 (1)

报错内容:

代码语言:javascript复制
Error: Could not open client transport with JDBC Uri: jdbc:hive2://hadoop102:10000: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hank is not allowed to impersonate hank (state=08S01,code=0)

解决方案: 在hadoop文件core-site.xml中配置信息如下,重启Hadoop,再次启动hiveserver2和beeline即可

把下面的root替换成自己的用户名

代码语言:javascript复制
<property>
<name>hadoop.proxyuser.root.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.root.groups</name>
<value>*</value>
</property>

0 人点赞