hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] Created: (HBASE-2591) HBASE-2587 hardcoded the port that dfscluster runs on
Date Fri, 21 May 2010 19:38:15 GMT
HBASE-2587 hardcoded the port that dfscluster runs on
-----------------------------------------------------

                 Key: HBASE-2591
                 URL: https://issues.apache.org/jira/browse/HBASE-2591
             Project: Hadoop HBase
          Issue Type: Bug
            Reporter: stack


 HBASE-2587 "Coral where tests write data when running and make sure clean target removes
all written" hardcoded the port that dfscluster runs on.  Makes it so can't run tests in shared
environment.


Here's a fix:

{code}
diff --git a/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java b/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
index 8795ba6..238e804 100644
--- a/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
+++ b/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
@@ -173,8 +173,8 @@ public class HBaseTestingUtility {
     else this.clusterTestBuildDir = dir;
     System.setProperty(TEST_DIRECTORY_KEY, this.clusterTestBuildDir.toString());
     System.setProperty("test.cache.data", this.clusterTestBuildDir.toString());
-    this.dfsCluster = new MiniDFSCluster(12345, this.conf, servers, true,
-      true, true, null, null, null, null);
+    this.dfsCluster = new MiniDFSCluster(0, this.conf, servers, true, true,
+      true, null, null, null, null);
     return this.dfsCluster;
   }
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message