1. 程式人生 > >hive連線提示 root is not allowed to impersonate root (state=08S01,code=0)

hive連線提示 root is not allowed to impersonate root (state=08S01,code=0)

hive連線詳細參考這個

1 使用
beeline jdbc:hive2://had1:10000/default;auth=noSasl

2 在hadoop 的core-site.xml新增如下內容 然後重啟

<property>
	<name>hadoop.proxyuser.root.groups</name>
	<value>root</value>
	<description>Allow the superuser oozie to impersonate any members of the group group1 and group2</
description
>
</property> <property> <name>hadoop.proxyuser.root.hosts</name> <value>*</value> <description>The superuser can connect only from host1 and host2 to impersonate a user</description> </property>