[ 
https://issues.apache.org/jira/browse/HIVE-22193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16930523#comment-16930523
 ] 

Hui An commented on HIVE-22193:
-------------------------------

There is one way that by deleting HS2 info from znode, HS2 will shutdown itself 
after executing all active querys. But I think it still has some problems.
1. it will not stop any new users from connecting to it, also old living 
sessions trying to interact with it.
2. how to handle HS2 which does not set 
hive.server2.support.dynamic.service.discovery to true?

> Graceful Shutdown HiveServer2
> -----------------------------
>
>                 Key: HIVE-22193
>                 URL: https://issues.apache.org/jira/browse/HIVE-22193
>             Project: Hive
>          Issue Type: Improvement
>          Components: Server Infrastructure
>            Reporter: chenshiyun
>            Priority: Major
>
> We have a lot of HiveSever2 servers deployed on production environment (about 
> 10 nodes). 
> However, if we want to change configuration or add patches, we would have to 
> restart all of them one by one. So all the Hive Sql job running on the server 
> will be defeated, and there may be some mistakes come up on the jdbc client 
> occasionally.
> In the proposed changes,  planning to add Graceful Shutdown HiveSever2 method 
> to avoid affecting the production environment jobs



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to