YARN-10350. TestUserGroupMappingPlacementRule fails
Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
parent
85d4718ed7
commit
8980c23fc2
|
@ -50,7 +50,13 @@ public class SimpleGroupsMapping implements GroupMappingServiceProvider {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Set<String> getGroupsSet(String user) throws IOException {
|
public Set<String> getGroupsSet(String user) throws IOException {
|
||||||
|
if ("admins".equals(user)) {
|
||||||
|
return ImmutableSet.of("root");
|
||||||
|
} else if ("nosecondarygroupuser".equals(user)) {
|
||||||
|
return ImmutableSet.of("primarygrouponly");
|
||||||
|
} else {
|
||||||
return ImmutableSet.of(user + "group", user + "subgroup1",
|
return ImmutableSet.of(user + "group", user + "subgroup1",
|
||||||
user + "subgroup2");
|
user + "subgroup2");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue