[
https://issues.apache.org/jira/browse/HIVE-19825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17450162#comment-17450162
]
KaiXinXIaoLei commented on HIVE-19825:
--------------------------------------
[~RANith] This patch is not merged. Do you know why it is not merged? Now
there is still a error:
```
21/11/26 21:03:24 [main-SendThread(emr-31pfgbdou24jay2jora1-core-1:2181)]:
DEBUG zookeeper.ClientCnxn: Reading reply sessionid:0x100000448270030, packet::
clientPath:null serverPath:null finished:false header:: 1,12 replyHeader::
1,4294967901,0 request:: '/hiveserver2,F response::
v\{'leader,'serverUri=emr-master-2:10000;version=3.1.2;sequence=0000000016},s\{4294967344,4294967344,1637842409931,1637842409931,0,32,0,0,13,2,4294967678}
21/11/26 21:03:25 [main-SendThread(emr-31pfgbdou24jay2jora1-core-1:2181)]:
DEBUG zookeeper.ClientCnxn: Reading reply sessionid:0x100000448270030, packet::
clientPath:null serverPath:null finished:false header:: 2,4 replyHeader::
2,4294967901,0 request:: '/hiveserver2/leader,F response::
,s\{4294967349,4294967349,1637842409981,1637842409981,0,31,0,0,0,1,4294967681}
21/11/26 21:03:25 [main]: DEBUG imps.CuratorFrameworkImpl: Closing
21/11/26 21:03:25 [Curator-Framework-0]: INFO imps.CuratorFrameworkImpl:
backgroundOperationsLoop exiting
21/11/26 21:03:25 [main]: DEBUG curator.CuratorZookeeperClient: Closing
21/11/26 21:03:25 [main]: DEBUG curator.ConnectionState: Closing
21/11/26 21:03:25 [main]: DEBUG zookeeper.ZooKeeper: Closing session:
0x100000448270030
21/11/26 21:03:25 [main]: DEBUG zookeeper.ClientCnxn: Closing client for
session: 0x100000448270030
21/11/26 21:03:25 [main-SendThread(emr-31pfgbdou24jay2jora1-core-1:2181)]:
DEBUG zookeeper.ClientCnxn: Reading reply sessionid:0x100000448270030, packet::
clientPath:null serverPath:null finished:false header:: 3,-11 replyHeader::
3,4294967902,0 request:: null response:: null
21/11/26 21:03:25 [main-SendThread(emr-31pfgbdou24jay2jora1-core-1:2181)]:
DEBUG zookeeper.ClientCnxn: An exception was thrown while closing send thread
for session 0x100000448270030 : Unable to read additional data from server
sessionid 0x100000448270030, likely server has closed socket
21/11/26 21:03:25 [main]: DEBUG zookeeper.ClientCnxn: Disconnecting client for
session: 0x100000448270030
21/11/26 21:03:25 [main]: INFO zookeeper.ZooKeeper: Session: 0x100000448270030
closed
21/11/26 21:03:25 [main-EventThread]: INFO zookeeper.ClientCnxn: EventThread
shut down
Error: org.apache.hive.jdbc.ZooKeeperHiveClientException: Unable to read
HiveServer2 configs from ZooKeeper (state=,code=0)
```
> HiveServer2 leader selection shall use different zookeeper znode
> ----------------------------------------------------------------
>
> Key: HIVE-19825
> URL: https://issues.apache.org/jira/browse/HIVE-19825
> Project: Hive
> Issue Type: Bug
> Components: HiveServer2
> Reporter: Daniel Dai
> Assignee: Daniel Dai
> Priority: Major
> Attachments: HIVE-19825.1.patch
>
>
> Currently, HiveServer2 leader selection (used only by privilegesynchronizer
> now) is reuse /hiveserver2 parent znode which is already used for HiveServer2
> service discovery. This interfere the service discovery. I'd like to switch
> to a different znode /hiveserver2-leader.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)