You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Allen <52...@qq.com> on 2015/01/28 06:50:01 UTC
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.
Re: how to set dynamic service discovery for HiveServer2
Posted by Vaibhav Gumashta <vg...@hortonworks.com>.
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 <52...@qq.com>>
Reply-To: "user@hive.apache.org<ma...@hive.apache.org>" <us...@hive.apache.org>>
Date: Tuesday, January 27, 2015 at 9:50 PM
To: "user@hive.apache.org<ma...@hive.apache.org>" <us...@hive.apache.org>>
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.