[ 
https://issues.apache.org/jira/browse/HIVE-23084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Peter Varga updated HIVE-23084:
-------------------------------
    Status: Patch Available  (was: In Progress)

> Implement kill query in multiple HS2 environment
> ------------------------------------------------
>
>                 Key: HIVE-23084
>                 URL: https://issues.apache.org/jira/browse/HIVE-23084
>             Project: Hive
>          Issue Type: Improvement
>          Components: HiveServer2
>            Reporter: Peter Varga
>            Assignee: Peter Varga
>            Priority: Major
>         Attachments: HIVE-23084.1.patch, HIVE-23084.2.patch, 
> HIVE-23084.3.patch, HIVE-23084.4.patch
>
>
> KILL <queryId|querytag> command was implemented in:
>  * https://issues.apache.org/jira/browse/HIVE-17483
>  * https://issues.apache.org/jira/browse/HIVE-20549
> But it is not working in an environment where service discovery is enabled 
> and more than one HS2 instance is running (except for manually sending the 
> kill query to all HS2 instance).
> Solution:
>  * If a HS2 instance can't kill a query locally, it should post a kill query 
> request to the Zookeeper
>  * Every HS2 should watch the Zookeeper for kill query requests and if its 
> running on that instance kill it
>  * Authorization of kill query should work the same



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to