Support Questions
Find answers, ask questions, and share your expertise

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.