You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Peter Varga (Jira)" <ji...@apache.org> on 2020/04/06 10:03:00 UTC

[jira] [Updated] (HIVE-23084) Implement kill query in multiple HS2 environment

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

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

> 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)