hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xg...@apache.org
Subject hadoop git commit: YARN-2810. TestRMProxyUsersConf fails on Windows VMs. Contributed by Varun Vasudev
Date Fri, 07 Nov 2014 17:46:19 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 eb01c602e -> bf7954186


YARN-2810. TestRMProxyUsersConf fails on Windows VMs. Contributed by Varun Vasudev

(cherry picked from commit 1e97f2f09464e871773188f642f3a01b744c580f)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/bf795418
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/bf795418
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/bf795418

Branch: refs/heads/branch-2
Commit: bf795418686e1559db4c37c0b107bb5c08bbf525
Parents: eb01c60
Author: Xuan <xgong@apache.org>
Authored: Fri Nov 7 09:44:43 2014 -0800
Committer: Xuan <xgong@apache.org>
Committed: Fri Nov 7 09:46:04 2014 -0800

----------------------------------------------------------------------
 hadoop-yarn-project/CHANGES.txt                             | 2 ++
 .../yarn/server/resourcemanager/TestRMProxyUsersConf.java   | 9 +++++----
 2 files changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/bf795418/hadoop-yarn-project/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt
index 3749d59..51c4d94 100644
--- a/hadoop-yarn-project/CHANGES.txt
+++ b/hadoop-yarn-project/CHANGES.txt
@@ -865,6 +865,8 @@ Release 2.6.0 - UNRELEASED
     schedulers about previous finished attempts of a running appliation to avoid
     expectation mismatch w.r.t transferred containers. (Jian He via vinodkv)
 
+    YARN-2810. TestRMProxyUsersConf fails on Windows VMs. (Varun Vasudev via xgong)
+
 Release 2.5.2 - UNRELEASED
 
   INCOMPATIBLE CHANGES

http://git-wip-us.apache.org/repos/asf/hadoop/blob/bf795418/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMProxyUsersConf.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMProxyUsersConf.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMProxyUsersConf.java
index 86a9fe4..f6d239d 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMProxyUsersConf.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMProxyUsersConf.java
@@ -38,6 +38,7 @@ public class TestRMProxyUsersConf {
       UserGroupInformation.createUserForTesting("foo", new String[] { "foo_group" });
   private static final UserGroupInformation BAR_USER =
       UserGroupInformation.createUserForTesting("bar", new String[] { "bar_group" });
+  private final String ipAddress = "127.0.0.1";
 
   @Parameterized.Parameters
   public static Collection<Object[]> headers() {
@@ -51,13 +52,13 @@ public class TestRMProxyUsersConf {
     switch (round) {
       case 0:
         // hadoop.proxyuser prefix
-        conf.set("hadoop.proxyuser.foo.hosts", "localhost");
+        conf.set("hadoop.proxyuser.foo.hosts", ipAddress);
         conf.set("hadoop.proxyuser.foo.users", "bar");
         conf.set("hadoop.proxyuser.foo.groups", "bar_group");
         break;
       case 1:
         // yarn.resourcemanager.proxyuser prefix
-        conf.set("yarn.resourcemanager.proxyuser.foo.hosts", "localhost");
+        conf.set("yarn.resourcemanager.proxyuser.foo.hosts", ipAddress);
         conf.set("yarn.resourcemanager.proxyuser.foo.users", "bar");
         conf.set("yarn.resourcemanager.proxyuser.foo.groups", "bar_group");
         break;
@@ -67,7 +68,7 @@ public class TestRMProxyUsersConf {
         conf.set("hadoop.proxyuser.foo.hosts", "xyz");
         conf.set("hadoop.proxyuser.foo.users", "xyz");
         conf.set("hadoop.proxyuser.foo.groups", "xyz");
-        conf.set("yarn.resourcemanager.proxyuser.foo.hosts", "localhost");
+        conf.set("yarn.resourcemanager.proxyuser.foo.hosts", ipAddress);
         conf.set("yarn.resourcemanager.proxyuser.foo.users", "bar");
         conf.set("yarn.resourcemanager.proxyuser.foo.groups", "bar_group");
         break;
@@ -89,7 +90,7 @@ public class TestRMProxyUsersConf {
               BAR_USER.getShortUserName(), FOO_USER);
       try {
         ProxyUsers.getDefaultImpersonationProvider().authorize(proxyUser,
-            "localhost");
+            ipAddress);
       } catch (AuthorizationException e) {
         // Exception is not expected
         Assert.fail();


Mime
View raw message