knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From su...@apache.org
Subject knox git commit: KNOX-901 Finding free ports for namenode
Date Sat, 04 Mar 2017 12:07:05 GMT
Repository: knox
Updated Branches:
  refs/heads/v0.12.0 f47259c0c -> fcdef6f20


KNOX-901 Finding free ports for namenode


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

Branch: refs/heads/v0.12.0
Commit: fcdef6f20640b4f6dec9fa35e389b52a99c95cf6
Parents: f47259c
Author: Sumit Gupta <sumit@apache.org>
Authored: Sat Mar 4 06:45:59 2017 -0500
Committer: Sumit Gupta <sumit@apache.org>
Committed: Sat Mar 4 07:06:55 2017 -0500

----------------------------------------------------------------------
 .../src/test/java/org/apache/hadoop/gateway/SecureClusterTest.java | 2 +-
 .../src/test/java/org/apache/hadoop/gateway/ShellTest.java         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/fcdef6f2/gateway-test-release/webhdfs-kerb-test/src/test/java/org/apache/hadoop/gateway/SecureClusterTest.java
----------------------------------------------------------------------
diff --git a/gateway-test-release/webhdfs-kerb-test/src/test/java/org/apache/hadoop/gateway/SecureClusterTest.java
b/gateway-test-release/webhdfs-kerb-test/src/test/java/org/apache/hadoop/gateway/SecureClusterTest.java
index 62dc734..a7fd71c 100644
--- a/gateway-test-release/webhdfs-kerb-test/src/test/java/org/apache/hadoop/gateway/SecureClusterTest.java
+++ b/gateway-test-release/webhdfs-kerb-test/src/test/java/org/apache/hadoop/gateway/SecureClusterTest.java
@@ -119,7 +119,7 @@ public class SecureClusterTest {
     System.setProperty(MiniDFSCluster.PROP_TEST_BUILD_DATA, baseDir.getAbsolutePath());
     initKdc();
     miniDFSCluster = new MiniDFSCluster.Builder(configuration)
-        .nameNodePort(20112)
+        .nameNodePort(TestUtils.findFreePort())
         .nameNodeHttpPort(nameNodeHttpPort)
         .numDataNodes(0)
         .format(true)

http://git-wip-us.apache.org/repos/asf/knox/blob/fcdef6f2/gateway-test-release/webhdfs-test/src/test/java/org/apache/hadoop/gateway/ShellTest.java
----------------------------------------------------------------------
diff --git a/gateway-test-release/webhdfs-test/src/test/java/org/apache/hadoop/gateway/ShellTest.java
b/gateway-test-release/webhdfs-test/src/test/java/org/apache/hadoop/gateway/ShellTest.java
index 94db645..86b201e 100644
--- a/gateway-test-release/webhdfs-test/src/test/java/org/apache/hadoop/gateway/ShellTest.java
+++ b/gateway-test-release/webhdfs-test/src/test/java/org/apache/hadoop/gateway/ShellTest.java
@@ -74,7 +74,7 @@ public class ShellTest {
     baseDir = new File(KeyStoreTestUtil.getClasspathDir(ShellTest.class));
     System.setProperty(MiniDFSCluster.PROP_TEST_BUILD_DATA, baseDir.getAbsolutePath());
     miniDFSCluster = new MiniDFSCluster.Builder(configuration)
-        .nameNodePort(20112)
+        .nameNodePort(TestUtils.findFreePort())
         .nameNodeHttpPort(nameNodeHttpPort)
         .numDataNodes(2)
         .format(true)


Mime
View raw message