You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by se...@apache.org on 2018/05/22 00:15:58 UTC

[2/2] hive git commit: HIVE-19463 : TezTask - getting groups may fail (PartialGroupNameException in some tests) (Sergey Shelukhin, reviewed by Prasanth Jayachandran)

HIVE-19463 : TezTask - getting groups may fail (PartialGroupNameException in some tests) (Sergey Shelukhin, reviewed by Prasanth Jayachandran)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/d980363d
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/d980363d
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/d980363d

Branch: refs/heads/branch-3
Commit: d980363d33ca5c113720c490896a0221b3574e80
Parents: 4c4d48e
Author: sergey <se...@apache.org>
Authored: Mon May 21 17:09:34 2018 -0700
Committer: sergey <se...@apache.org>
Committed: Mon May 21 17:15:37 2018 -0700

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezTask.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/d980363d/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezTask.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezTask.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezTask.java
index 84ae157..a15482f 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezTask.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezTask.java
@@ -160,7 +160,11 @@ public class TezTask extends Task<TezWork> {
       if (userName == null) {
         userName = "anonymous";
       } else {
-        groups = UserGroupInformation.createRemoteUser(userName).getGroups();
+        try {
+          groups = UserGroupInformation.createRemoteUser(userName).getGroups();
+        } catch (Exception ex) {
+          LOG.warn("Cannot obtain groups for " + userName, ex);
+        }
       }
       MappingInput mi = new MappingInput(userName, groups,
           ss.getHiveVariables().get("wmpool"), ss.getHiveVariables().get("wmapp"));