Created 03-08-2016 10:23 PM
Hi, how to get the host name and port number where the hiveserver2 process is running?
I am working on a cluster environment and usually we login into edge node. Is it possible to get the hive server details from this edge node?
I need this to connect to hive from tableau.
Created 03-08-2016 10:27 PM
this information is available in Ambari UI under Hive service or you could look up /etc/hive/conf/hive-site.xml on edge node and view the file, port info is in the XML.
Created 03-08-2016 10:54 PM
I found the port information under the property hive.server2.thrift.port. But the only properties where server names are listed are under hive.zookeeper.quorum hive.metastore.uris.
Can you please let me know which property I should be looking at to find the host that runs hiveserver2 service?
Created 03-09-2016 05:40 PM
Its not a config, every hiveserver2 gets the same config. Go to Summary on the hive tab and you will see a list of all hiveservers metastore services etc. Click on the hiveserver2 one and you see the host its running on.
Created 03-09-2016 08:33 PM
Sorry, I just started learning hadoop. Not sure where you want me look for this summary. I checked from hue. I could not see this detail. Can you please elaborate a little?
Created 03-10-2016 09:48 AM
Ambari the management tool for HDP ( Hue is the working environment. ) Ambari can normaly found under port 8080 or 8443 on the ambari server ( if you use a sandbox for example )
Created 03-09-2016 09:03 PM
I just logged into Ambari and found the hiveserver2 under summary tab. There are five hiveserver2 processes listed there. And each of them are running in different hosts.
Why would there be so many hiveserver2 components? Isnt hiveserver2 a server process for processing client requests from cli? so shouldnt there be only one hiveserver2?
Thanks!
Created 03-09-2016 11:50 PM
Multiple instances of HiveServer2 can be started to load balance and make it highly available. You can connect to HiveServer2 in two ways - direct host:port, or through zkurl. See more examples of connection url here.
Created 03-10-2016 04:30 AM
Hi @R M, login to Ambari, on the left side select Hive, and on the right at the top select Summary. Than click on HiveServer2 to see the host where it's running.