[jira] [Commented] (HIVE-22193) Graceful Shutdown HiveServer2

2020-08-06 Thread Abhijith Setty (Jira)


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

Abhijith Setty commented on HIVE-22193:
---

We would love this feature too. We have 10s of HS2 deployed.

Some thing similar to YARN/HDFS decommission would do. Essentially if we can 
put the service in decommissioned mode and where if does not accept new queries 
external tooling can be built to do actions based on what the current state is. 
I'm picturing 4 states
 # Active - Ready to take queries
 # Decommissioning - Finishing up queries but not taking new ones
 # Decommissioned - Live but not queryable
 # Stopped

> 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.4#803005)


[jira] [Commented] (HIVE-22193) Graceful Shutdown HiveServer2

2019-09-16 Thread Hui An (Jira)


[ 
https://issues.apache.org/jira/browse/HIVE-22193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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)