You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2010/05/21 21:38:15 UTC

[jira] Created: (HBASE-2591) HBASE-2587 hardcoded the port that dfscluster runs on

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.


[jira] Resolved: (HBASE-2591) HBASE-2587 hardcoded the port that dfscluster runs on

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-2591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack resolved HBASE-2591.
--------------------------

         Assignee: stack
    Fix Version/s: 0.21.0
       Resolution: Fixed

Committed.

> 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
>            Assignee: stack
>             Fix For: 0.21.0
>
>
>  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.