hadoop - cant impersonate on hive server2 -
im trying connect hive server 2 through jdbc connector, im getting error:
'user x cant impersonate y'
i added these properties core-site.xml file:
<property> <name>hadoop.proxyuser.hive.hosts</name> <value>*</value> </property> <property> <name>hadoop.proxyuser.hive.groups</name> <value>*</value> </property>
also, in hive-site.xml have:
<property> <name>hive.server2.enable.doas</name> <value>true</value> <description> setting property true have hiveserver2 execute hive operations user making calls it. </description> </property>
i have authentication set none , connecting anonymous. have restarted cluster since changing config files running:
hadoop fs -chmod g+w /user/hive/warehouse hadoop fs -chmod g+w /tmp
can suggest why im still getting error?
if trying connect user named anonymous
, properties should be
<property> <name>hadoop.proxyuser.anonymous.hosts</name> <value>*</value> </property> <property> <name>hadoop.proxyuser.anonymous.groups</name> <value>*</value> </property>
Comments
Post a Comment