YARN-1833. TestRMAdminService Fails in trunk and branch-2 (Mit Desais via jeagles)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1577737 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
37cb314f79
commit
95b7f50813
@ -35,6 +35,9 @@ Release 2.5.0 - UNRELEASED
|
|||||||
YARN-1429. *nix: Allow a way for users to augment classpath of YARN daemons.
|
YARN-1429. *nix: Allow a way for users to augment classpath of YARN daemons.
|
||||||
(Jarek Jarcec Cecho via kasha)
|
(Jarek Jarcec Cecho via kasha)
|
||||||
|
|
||||||
|
YARN-1833. TestRMAdminService Fails in trunk and branch-2 (Mit Desais via
|
||||||
|
jeagles)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
@ -377,10 +377,15 @@ public void testRefreshUserToGroupsMappingsWithLocalConfigurationProvider() {
|
|||||||
configuration.set(YarnConfiguration.RM_CONFIGURATION_PROVIDER_CLASS,
|
configuration.set(YarnConfiguration.RM_CONFIGURATION_PROVIDER_CLASS,
|
||||||
"org.apache.hadoop.yarn.FileSystemBasedConfigurationProvider");
|
"org.apache.hadoop.yarn.FileSystemBasedConfigurationProvider");
|
||||||
|
|
||||||
String user = UserGroupInformation.getCurrentUser().getUserName();
|
String[] defaultTestUserGroups = {"dummy_group1", "dummy_group2"};
|
||||||
List<String> groupWithInit =
|
UserGroupInformation ugi = UserGroupInformation.createUserForTesting
|
||||||
new ArrayList<String>(Groups.getUserToGroupsMappingService(
|
("dummyUser", defaultTestUserGroups);
|
||||||
configuration).getGroups(user));
|
|
||||||
|
String user = ugi.getUserName();
|
||||||
|
List<String> groupWithInit = new ArrayList<String>(2);
|
||||||
|
for(int i = 0; i < ugi.getGroupNames().length; i++ ) {
|
||||||
|
groupWithInit.add(ugi.getGroupNames()[i]);
|
||||||
|
}
|
||||||
|
|
||||||
// upload default configurations
|
// upload default configurations
|
||||||
uploadDefaultConfiguration();
|
uploadDefaultConfiguration();
|
||||||
|
Loading…
Reference in New Issue
Block a user