Support Questions

Find answers, ask questions, and share your expertise

how to check on which host HiveServer2 is running?

avatar
Rising Star

I need to apply authorization using Sentry. I need to create the local groups on the host on which HiveServer2 is running. How to know on which host HiveServer2 running ??

1 ACCEPTED SOLUTION

avatar
Contributor

Hi Nirvana,

If you are using Ambari, then you can drill into hive. You will see the components for Hive here > Metastore, Hiveserver2, Webhcat. You can click on Hiveserver2 and this will take you to the hosts page for the host running hiveserver2.

Otherwise you can check in zookeeper. Open the zookeeper cli (/usr/hdp/current/zookeeper-server/bin/zkCli.sh) and run ls /hiveserver2 - this will output something along the lines of:

[zk: localhost:2181(CONNECTED) 1] ls /hiveserver2 [serverUri=sandbox.hortonworks.com:10000;version=1.2.1.2.3.2.0-2950;sequence=0000000023]

However HS2 must be running.

Thanks

Dave

View solution in original post

2 REPLIES 2

avatar
Contributor

Hi Nirvana,

If you are using Ambari, then you can drill into hive. You will see the components for Hive here > Metastore, Hiveserver2, Webhcat. You can click on Hiveserver2 and this will take you to the hosts page for the host running hiveserver2.

Otherwise you can check in zookeeper. Open the zookeeper cli (/usr/hdp/current/zookeeper-server/bin/zkCli.sh) and run ls /hiveserver2 - this will output something along the lines of:

[zk: localhost:2181(CONNECTED) 1] ls /hiveserver2 [serverUri=sandbox.hortonworks.com:10000;version=1.2.1.2.3.2.0-2950;sequence=0000000023]

However HS2 must be running.

Thanks

Dave