Hi all,
I'm trying to connect o HiveServer2 by using beeline client,
When I do
`/usr/local/hive/bin/beeline -u jdbc:hive2://<hostA>:9890`, I got
`Error: Failed to open new session: java.lang.RuntimeException:
java.lang.RuntimeException:
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException):
User: product is not allowed to impersonate anonymous (state=,code=0)
Beeline version 2.0.0-SNAPSHOT by Apache Hive`
Also when I do,
`/usr/local/hive/bin/beeline -u jdbc:hive2://<hostA>:9890 -n product`,
I also got
`Error: Failed to open new session: java.lang.RuntimeException:
java.lang.RuntimeException:
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException):
User: product is not allowed to impersonate product (state=,code=0)
Beeline version 2.0.0-SNAPSHOT by Apache Hive`
But when I put all the necessary information in a hive-site.xml
<property>
<name>hive.server2.thrift.port</name>
<value>9890</value>
</property>
<property>
<name>hive.server2.thrift.bind.host</name>
<value><hostA></value>
</property>
And do export HIVE_CONF_DIR=<path to hive-site.xml>, then run
`/usr/local/hive/bin/beeline -u jdbc:hive2://`
Anyone knows what's going on?
It was able to connect to the correct hiveserver2 (I can run queries
against it). I don't have any authentication setup (as far as I know) on
the Hiveserver2 side. Besides I am able to connect to it just fine using
the hacky method described above. Although I would like to connect to it in
code (using a java jdbc client) so the hacky method won't work.
Thanks!
Jerrick