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

(cherry picked from commit 6f03959e4d)

Conflicts:

	hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
This commit is contained in:
Jason Lowe 2016-02-10 22:02:32 +00:00
parent 717b1a1f99
commit 4737d46861
2 changed files with 5 additions and 1 deletions

View File

@ -50,6 +50,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

View File

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