FAQ
HBASE-15824 LocalHBaseCluster gets bind exception in master info port - ADDENDUM


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/8566fd0f
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/8566fd0f
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/8566fd0f

Branch: refs/heads/branch-1.3
Commit: 8566fd0f1ec4ae0bcbadb0550d6b857402ee6f49
Parents: d3d5033
Author: Enis Soztutar <enis@apache.org>
Authored: Wed May 18 11:36:10 2016 -0700
Committer: Enis Soztutar <enis@apache.org>
Committed: Wed May 18 11:37:40 2016 -0700

----------------------------------------------------------------------
  .../main/java/org/apache/hadoop/hbase/LocalHBaseCluster.java | 5 +----
  .../src/test/java/org/apache/hadoop/hbase/MiniHBaseCluster.java | 3 +++
  2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/8566fd0f/hbase-server/src/main/java/org/apache/hadoop/hbase/LocalHBaseCluster.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/LocalHBaseCluster.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/LocalHBaseCluster.java
index da38775..b98078a 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/LocalHBaseCluster.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/LocalHBaseCluster.java
@@ -143,9 +143,6 @@ public class LocalHBaseCluster {
      // Always have masters and regionservers come up on port '0' so we don't
      // clash over default ports.
      conf.set(HConstants.MASTER_PORT, "0");
- if (conf.getInt(HConstants.MASTER_INFO_PORT, 0) != -1) {
- conf.set(HConstants.MASTER_INFO_PORT, "0");
- }
      conf.set(HConstants.REGIONSERVER_PORT, "0");
      if (conf.getInt(HConstants.REGIONSERVER_INFO_PORT, 0) != -1) {
        conf.set(HConstants.REGIONSERVER_INFO_PORT, "0");
@@ -447,4 +444,4 @@ public class LocalHBaseCluster {
      }
      cluster.shutdown();
    }
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/hbase/blob/8566fd0f/hbase-server/src/test/java/org/apache/hadoop/hbase/MiniHBaseCluster.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/MiniHBaseCluster.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/MiniHBaseCluster.java
index 002bdb2..f788bed 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/MiniHBaseCluster.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/MiniHBaseCluster.java
@@ -86,6 +86,9 @@ public class MiniHBaseCluster extends HBaseCluster {
        throws IOException, InterruptedException {
      super(conf);
      conf.set(HConstants.MASTER_PORT, "0");
+ if (conf.getInt(HConstants.MASTER_INFO_PORT, 0) != -1) {
+ conf.set(HConstants.MASTER_INFO_PORT, "0");
+ }

      // Hadoop 2
      CompatibilityFactory.getInstance(MetricsAssertHelper.class).init();

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 8 of 58 | next ›
Discussion Overview
groupcommits @
categorieshbase, hadoop
postedMay 6, '16 at 4:11p
activeMay 26, '16 at 11:00p
posts58
users6
websitehbase.apache.org

People

Translate

site design / logo © 2019 Grokbase