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 11:46:23 GMT
Repository: knox
Updated Branches:
  refs/heads/master ade9d7a99 -> f9da2747a


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/f9da2747
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/f9da2747
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/f9da2747

Branch: refs/heads/master
Commit: f9da2747af2b9ef6b62ff82de9af6c7e46348ce2
Parents: ade9d7a
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 06:45:59 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/f9da2747/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/f9da2747/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