Hi, You can follow the document posted on this jira: https://issues.apache.org/jira/browse/HIVE-8376
Basically, in your JDBC url, you will have to refer to the ZooKeeper ensemble instead of a particular HiveServer2 instance. The JDBC driver will select one HiveServer2 instance from ZooKeeper and use that for the rest of the client session. Thanks, -Vaibhav From: Allen <[email protected]<mailto:[email protected]>> Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Date: Tuesday, January 27, 2015 at 9:50 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: how to set dynamic service discovery for HiveServer2 hi,all I want to use dynamic service discovery for HiveServer2. I has already set some configuration parameters about dynamic service discovery in hive-site.xml. The hive server2 has been started in two machines,and these nodes has register itself in zk. But I don't know how to use it in beeline. Can anybody tell me how to write the connection url ? Thanks.
