From 64235b584ef0e39a2b213a162ddc8c48004f4819 Mon Sep 17 00:00:00 2001 From: Elliott Clark Date: Wed, 25 Feb 2015 13:29:36 -0800 Subject: [PATCH] HBASE-13102 Fix Pseudo-distributed Mode which was broken in 1.0.0 --- .../org/apache/hadoop/hbase/regionserver/RSRpcServices.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java index 62c3305..4cd25da 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java @@ -783,17 +783,6 @@ public class RSRpcServices implements HBaseRPCErrorHandler, } // Server to handle client requests. String hostname = getHostname(rs.conf); - - boolean mode = - rs.conf.getBoolean(HConstants.CLUSTER_DISTRIBUTED, HConstants.DEFAULT_CLUSTER_DISTRIBUTED); - if (mode == HConstants.CLUSTER_IS_DISTRIBUTED && hostname.equals(HConstants.LOCALHOST)) { - String msg = - "The hostname of regionserver cannot be set to localhost " - + "in a fully-distributed setup because it won't be reachable. " - + "See \"Getting Started\" for more information."; - LOG.fatal(msg); - throw new IOException(msg); - } int port = rs.conf.getInt(HConstants.REGIONSERVER_PORT, HConstants.DEFAULT_REGIONSERVER_PORT); // Creation of a HSA will force a resolve. -- 2.3.0