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

(cherry picked from commit 6f03959e4d)
This commit is contained in:
Jason Lowe 2016-02-10 21:53:08 +00:00
parent 17f83c8803
commit fa9b3e6302
2 changed files with 4 additions and 1 deletions

View File

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

@ -218,7 +218,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();