[ https://issues.apache.org/jira/browse/HIVE-11581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14710317#comment-14710317 ]
Thejas M Nair commented on HIVE-11581: -------------------------------------- +1 for new patch > HiveServer2 should store connection params in ZK when using dynamic service > discovery for simpler client connection string. > --------------------------------------------------------------------------------------------------------------------------- > > Key: HIVE-11581 > URL: https://issues.apache.org/jira/browse/HIVE-11581 > Project: Hive > Issue Type: Bug > Components: HiveServer2, JDBC > Affects Versions: 1.3.0, 2.0.0 > Reporter: Vaibhav Gumashta > Assignee: Vaibhav Gumashta > Attachments: HIVE-11581.1.patch, HIVE-11581.2.patch, > HIVE-11581.3.patch, HIVE-11581.3.patch, HIVE-11581.4.patch > > > Currently, the client needs to specify several parameters based on which an > appropriate connection is created with the server. In case of dynamic service > discovery, when multiple HS2 instances are running, it is much more usable > for the server to add its config parameters to ZK which the driver can use to > configure the connection, instead of the jdbc/odbc user adding those in > connection string. > However, at minimum, client will need to specify zookeeper ensemble and that > she wants the JDBC driver to use ZooKeeper: > {noformat} > beeline> !connect > jdbc:hive2://vgumashta.local:2181,vgumashta.local:2182,vgumashta.local:2183/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2 > vgumashta vgumashta org.apache.hive.jdbc.HiveDriver > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)