Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to determine hiveserver2 automatically?

Highlighted

Re: How to determine hiveserver2 automatically?

Master Collaborator

As other users have pointed in an Ambari managed cluster one can use REST APIs to easily determine this but you mentioned that you are using CDH. In that case one crude way would be to cycle through the nodes of the cluster and look for the HiveServer2 port to be open on that, you could use UNIX utility like nc.

Don't have an account?
Coming from Hortonworks? Activate your account here