Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-24751

Kill trigger in workload manager fails with "No privilege" exception when authorization is disabled.

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gupta.nikhil0007 Nikhil Gupta Assign to me
            gupta.nikhil0007 Nikhil Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 1h 50m
              1h 50m

              Slack

                Issue deployment