[
https://issues.apache.org/jira/browse/HIVE-24751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nikhil Gupta updated HIVE-24751:
--------------------------------
Description:
At present it is not checked whether authorization is enabled or not for Kill
Query access.
This causes Workload Manager thread to end up with No privilege Exception when
trying to kill a query in an environment where authorization is disabled.
```
org.apache.hadoop.hive.ql.metadata.HiveException: No privilege
at
org.apache.hive.service.server.KillQueryImpl.killQuery(KillQueryImpl.java:188)
at
org.apache.hadoop.hive.ql.exec.tez.WorkloadManager.lambda$scheduleWork$3(WorkloadManager.java:454)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.hive.service.cli.HiveSQLException: No privilege
at
org.apache.hive.service.server.KillQueryImpl.killQuery(KillQueryImpl.java:167)
... 6 more
```
was:At present it is not checked whether authorization is enabled or not for
Kill Query access.
> Everyone should have kill query access if authorization is not enabled
> ----------------------------------------------------------------------
>
> Key: HIVE-24751
> URL: https://issues.apache.org/jira/browse/HIVE-24751
> Project: Hive
> Issue Type: Bug
> Affects Versions: 4.0.0
> Reporter: Nikhil Gupta
> Priority: Major
> Fix For: 4.0.0
>
>
> At present it is not checked whether authorization is enabled or not for Kill
> Query access.
> This causes Workload Manager thread to end up with No privilege Exception
> when trying to kill a query in an environment where authorization is disabled.
> ```
> org.apache.hadoop.hive.ql.metadata.HiveException: No privilege
> at
> org.apache.hive.service.server.KillQueryImpl.killQuery(KillQueryImpl.java:188)
> at
> org.apache.hadoop.hive.ql.exec.tez.WorkloadManager.lambda$scheduleWork$3(WorkloadManager.java:454)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: org.apache.hive.service.cli.HiveSQLException: No privilege
> at
> org.apache.hive.service.server.KillQueryImpl.killQuery(KillQueryImpl.java:167)
> ... 6 more
> ```
--
This message was sent by Atlassian Jira
(v8.3.4#803005)