Peter Varga created HIVE-23084: ---------------------------------- Summary: 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
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)