瀏覽代碼

HADOOP-2601. Start name-node on a free port for TestNNThroughputBenchmark. Contributed by Konstantin Shvachko

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@612000 13f79535-47bb-0310-9956-ffa450edef68
Konstantin Shvachko 17 年之前
父節點
當前提交
63a37d7656
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/test/org/apache/hadoop/dfs/TestNNThroughputBenchmark.java

+ 3 - 0
CHANGES.txt

@@ -445,6 +445,9 @@ Trunk (unreleased changes)
     HADOOP-2481. NNBench report its progress periodically.
     (Hairong Kuang via dhruba)
 
+		HADOOP-2601. Start name-node on a free port for TestNNThroughputBenchmark.
+		(Konstantin Shvachko)
+
 Release 0.15.3 - (unreleased changes)
 
   BUG FIXES

+ 1 - 1
src/test/org/apache/hadoop/dfs/TestNNThroughputBenchmark.java

@@ -10,7 +10,7 @@ public class TestNNThroughputBenchmark extends TestCase {
    */
   public void testNNThroughput() throws Exception {
     Configuration conf = new Configuration();
-    conf.set("fs.default.name", "localhost:"+Integer.toString(50017));
+    conf.set("fs.default.name", "localhost:" + 0);
     NameNode.format(conf);
     NNThroughputBenchmark.runBenchmark(conf, new String[] {"-op", "all"});
   }