Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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
New Member

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
New Member

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