hadoop-yarn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeag...@apache.org
Subject svn commit: r1577743 - in /hadoop/common/branches/branch-2/hadoop-yarn-project: CHANGES.txt hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMAdminService.java
Date Fri, 14 Mar 2014 22:15:03 GMT
Author: jeagles
Date: Fri Mar 14 22:15:02 2014
New Revision: 1577743

URL: http://svn.apache.org/r1577743
Log:
YARN-1833. TestRMAdminService Fails in trunk and branch-2 (Mit Desais via jeagles)

Modified:
    hadoop/common/branches/branch-2/hadoop-yarn-project/CHANGES.txt
    hadoop/common/branches/branch-2/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMAdminService.java

Modified: hadoop/common/branches/branch-2/hadoop-yarn-project/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2/hadoop-yarn-project/CHANGES.txt?rev=1577743&r1=1577742&r2=1577743&view=diff
==============================================================================
--- hadoop/common/branches/branch-2/hadoop-yarn-project/CHANGES.txt (original)
+++ hadoop/common/branches/branch-2/hadoop-yarn-project/CHANGES.txt Fri Mar 14 22:15:02 2014
@@ -20,6 +20,9 @@ Release 2.5.0 - UNRELEASED
     YARN-1429. *nix: Allow a way for users to augment classpath of YARN daemons.
     (Jarek Jarcec Cecho via kasha)
 
+    YARN-1833. TestRMAdminService Fails in trunk and branch-2 (Mit Desais via
+    jeagles)
+
   OPTIMIZATIONS
 
   BUG FIXES 

Modified: hadoop/common/branches/branch-2/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMAdminService.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMAdminService.java?rev=1577743&r1=1577742&r2=1577743&view=diff
==============================================================================
--- hadoop/common/branches/branch-2/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMAdminService.java
(original)
+++ hadoop/common/branches/branch-2/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMAdminService.java
Fri Mar 14 22:15:02 2014
@@ -377,10 +377,15 @@ public class TestRMAdminService {
     configuration.set(YarnConfiguration.RM_CONFIGURATION_PROVIDER_CLASS,
         "org.apache.hadoop.yarn.FileSystemBasedConfigurationProvider");
 
-    String user = UserGroupInformation.getCurrentUser().getUserName();
-    List<String> groupWithInit =
-        new ArrayList<String>(Groups.getUserToGroupsMappingService(
-            configuration).getGroups(user));
+    String[] defaultTestUserGroups = {"dummy_group1", "dummy_group2"};
+    UserGroupInformation ugi = UserGroupInformation.createUserForTesting
+        ("dummyUser", defaultTestUserGroups);
+
+    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
     uploadDefaultConfiguration();



Mime
View raw message