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 2022/06/23 11:39:15 UTC

[GitHub] [hive] veghlaci05 opened a new pull request, #3402: HIVE-26352: Tez queue access check fails with GSS Exception on Compaction

veghlaci05 opened a new pull request, #3402:
URL: https://github.com/apache/hive/pull/3402

   ### What changes were proposed in this pull request?
   The Yarn queue check url now called with the HIVE login user's credentials.
   
   ### Why are the changes needed?
   The queue check url was called with empty credentials, and therefore failed.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Manually


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


[GitHub] [hive] deniskuzZ commented on a diff in pull request #3402: HIVE-26352: Tez queue access check fails with GSS Exception on Compaction

Posted by GitBox <gi...@apache.org>.
deniskuzZ commented on code in PR #3402:
URL: https://github.com/apache/hive/pull/3402#discussion_r905173085


##########
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/YarnQueueHelper.java:
##########
@@ -92,6 +94,20 @@ public YarnQueueHelper(HiveConf conf) {
   }
 
   public void checkQueueAccess(
+      String queueName, String userName) throws IOException, InterruptedException {
+    UserGroupInformation ugi = UserGroupInformation.getCurrentUser();
+    ugi.doAs((PrivilegedExceptionAction<Object>) () -> {

Review Comment:
   should we wrap doAs in try and call `FileSystem.closeAllForUGI` in finally?



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


[GitHub] [hive] deniskuzZ commented on a diff in pull request #3402: HIVE-26352: Tez queue access check fails with GSS Exception on Compaction

Posted by GitBox <gi...@apache.org>.
deniskuzZ commented on code in PR #3402:
URL: https://github.com/apache/hive/pull/3402#discussion_r905183674


##########
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/YarnQueueHelper.java:
##########
@@ -92,6 +94,20 @@ public YarnQueueHelper(HiveConf conf) {
   }
 
   public void checkQueueAccess(
+      String queueName, String userName) throws IOException, InterruptedException {
+    UserGroupInformation ugi = UserGroupInformation.getCurrentUser();
+    ugi.doAs((PrivilegedExceptionAction<Object>) () -> {

Review Comment:
   PrivilegedExceptionAction<Void> ?



##########
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/YarnQueueHelper.java:
##########
@@ -92,6 +94,20 @@ public YarnQueueHelper(HiveConf conf) {
   }
 
   public void checkQueueAccess(
+      String queueName, String userName) throws IOException, InterruptedException {
+    UserGroupInformation ugi = UserGroupInformation.getCurrentUser();
+    ugi.doAs((PrivilegedExceptionAction<Object>) () -> {

Review Comment:
   PrivilegedExceptionAction'<'Void'>' ?



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


[GitHub] [hive] deniskuzZ merged pull request #3402: HIVE-26352: Tez queue access check fails with GSS Exception on Compaction

Posted by GitBox <gi...@apache.org>.
deniskuzZ merged PR #3402:
URL: https://github.com/apache/hive/pull/3402


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


[GitHub] [hive] deniskuzZ commented on a diff in pull request #3402: HIVE-26352: Tez queue access check fails with GSS Exception on Compaction

Posted by GitBox <gi...@apache.org>.
deniskuzZ commented on code in PR #3402:
URL: https://github.com/apache/hive/pull/3402#discussion_r905164862


##########
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/YarnQueueHelper.java:
##########
@@ -92,6 +94,20 @@ public YarnQueueHelper(HiveConf conf) {
   }
 
   public void checkQueueAccess(
+      String queueName, String userName) throws IOException, InterruptedException {
+    UserGroupInformation ugi = UserGroupInformation.getCurrentUser();

Review Comment:
   shouldn't we use `getLoginUser()` here?



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


[GitHub] [hive] veghlaci05 commented on a diff in pull request #3402: HIVE-26352: Tez queue access check fails with GSS Exception on Compaction

Posted by GitBox <gi...@apache.org>.
veghlaci05 commented on code in PR #3402:
URL: https://github.com/apache/hive/pull/3402#discussion_r905882417


##########
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/YarnQueueHelper.java:
##########
@@ -92,6 +94,20 @@ public YarnQueueHelper(HiveConf conf) {
   }
 
   public void checkQueueAccess(
+      String queueName, String userName) throws IOException, InterruptedException {
+    UserGroupInformation ugi = UserGroupInformation.getCurrentUser();

Review Comment:
   I had a discussion regarding this with @abstractdog and he is thinking that if the current user is changed from the login user somewhere upper in the call stack, thank we should respect that, since that change had some reason.



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