Grokbase Groups HBase dev May 2010
FAQ
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.

Search Discussions

  • stack (JIRA) at May 21, 2010 at 7:40 pm
    [ 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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieshbase, hadoop
postedMay 21, '10 at 7:38p
activeMay 21, '10 at 7:40p
posts2
users1
websitehbase.apache.org

1 user in discussion

stack (JIRA): 2 posts

People

Translate

site design / logo © 2022 Grokbase