FAQ
Repository: hbase
Updated Branches:
   refs/heads/branch-1.1 4e9ee7347 -> 46f4e142e
   refs/heads/branch-1.2 df634737c -> fa3b39d22


HBASE-15824 LocalHBaseCluster gets bind exception in master info port


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

Branch: refs/heads/branch-1.2
Commit: fa3b39d22f6384f0e93fc60d7fc6a9c0382355b6
Parents: df63473
Author: Enis Soztutar <enis@apache.org>
Authored: Sun May 15 23:02:11 2016 -0700
Committer: Enis Soztutar <enis@apache.org>
Committed: Sun May 15 23:05:23 2016 -0700

----------------------------------------------------------------------
  .../main/java/org/apache/hadoop/hbase/LocalHBaseCluster.java | 5 +++++
  1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/fa3b39d2/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 fbe590f..afedbe9 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,6 +143,9 @@ 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");
@@ -195,6 +198,7 @@ public class LocalHBaseCluster {
    throws IOException, InterruptedException {
      return user.runAs(
          new PrivilegedExceptionAction<JVMClusterUtil.RegionServerThread>() {
+ @Override
            public JVMClusterUtil.RegionServerThread run() throws Exception {
              return addRegionServer(config, index);
            }
@@ -227,6 +231,7 @@ public class LocalHBaseCluster {
    throws IOException, InterruptedException {
      return user.runAs(
          new PrivilegedExceptionAction<JVMClusterUtil.MasterThread>() {
+ @Override
            public JVMClusterUtil.MasterThread run() throws Exception {
              return addMaster(c, index);
            }

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 8 of 64 | next ›
Discussion Overview
groupcommits @
categorieshbase, hadoop
postedMay 2, '16 at 6:38p
activeMay 17, '16 at 10:13p
posts64
users7
websitehbase.apache.org

People

Translate

site design / logo © 2019 Grokbase