浏览代码

HADOOP-12792. TestUserGroupInformation#testGetServerSideGroups fails in chroot. Contributed by Eric Badger

Jason Lowe 9 年之前
父节点
当前提交
6f03959e4d

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -1742,6 +1742,9 @@ Release 2.7.3 - UNRELEASED
     HADOOP-12772. NetworkTopologyWithNodeGroup.getNodeGroup() can loop
     infinitely for invalid 'loc' values (Kuhu Shukla via kihwal)
 
+    HADOOP-12792. TestUserGroupInformation#testGetServerSideGroups fails in
+    chroot (Eric Badger via jlowe)
+
 Release 2.7.2 - 2016-01-25
 
   INCOMPATIBLE CHANGES

+ 1 - 1
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java

@@ -221,7 +221,7 @@ public class TestUserGroupInformation {
     // get the groups
     pp = Runtime.getRuntime().exec(Shell.WINDOWS ?
       Shell.getWinUtilsPath() + " groups -F"
-      : "id -Gn");
+      : "id -Gn " + userName);
     br = new BufferedReader(new InputStreamReader(pp.getInputStream()));
     String line = br.readLine();