You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2021/09/20 17:31:52 UTC

[GitHub] [hive] achennagiri commented on a change in pull request #2649: HIVE-25532: Fixing authorization for Kill Query command

achennagiri commented on a change in pull request #2649:
URL: https://github.com/apache/hive/pull/2649#discussion_r712374554



##########
File path: service/src/java/org/apache/hive/service/server/KillQueryImpl.java
##########
@@ -116,6 +119,8 @@ public static void killChildYarnJobs(Configuration conf, String tag, String doAs
 
   private static boolean isAdmin() {
     boolean isAdmin = false;
+    // RANGER-1851
+    HivePrivilegeObject serviceNameObj = new HivePrivilegeObject(HivePrivilegeObject.HivePrivilegeObjectType.SERVICE_NAME, null, "hiveservice");

Review comment:
       So, currently the ranger service expects only "hiveservice" Ref. https://issues.apache.org/jira/browse/RANGER-1851. This has been the case since '17. I am even thinking of using the same for abort transactions as well. Do you see any reason why it needs to be made configurable?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org