diff --git a/bin/local-master-backup.sh b/bin/local-master-backup.sh index 1690a70f105..f5d296d61e4 100755 --- a/bin/local-master-backup.sh +++ b/bin/local-master-backup.sh @@ -42,8 +42,8 @@ run_master () { DN=$2 export HBASE_IDENT_STRING="$USER-$DN" HBASE_MASTER_ARGS="\ - -D hbase.master.port=`expr 60000 + $DN` \ - -D hbase.master.info.port=`expr 60010 + $DN` \ + -D hbase.master.port=`expr 16000 + $DN` \ + -D hbase.master.info.port=`expr 16010 + $DN` \ --backup" "$bin"/hbase-daemon.sh --config "${HBASE_CONF_DIR}" $1 master $HBASE_MASTER_ARGS } diff --git a/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestClientNoCluster.java b/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestClientNoCluster.java index dcdb8fd6f15..15693a2d3c7 100644 --- a/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestClientNoCluster.java +++ b/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestClientNoCluster.java @@ -95,7 +95,7 @@ public class TestClientNoCluster extends Configured implements Tool { private static final Log LOG = LogFactory.getLog(TestClientNoCluster.class); private Configuration conf; public static final ServerName META_SERVERNAME = - ServerName.valueOf("meta.example.org", 60010, 12345); + ServerName.valueOf("meta.example.org", 16010, 12345); @Before public void setUp() throws Exception { @@ -651,7 +651,7 @@ public class TestClientNoCluster extends Configured implements Tool { private static ServerName [] makeServerNames(final int count) { ServerName [] sns = new ServerName[count]; for (int i = 0; i < count; i++) { - sns[i] = ServerName.valueOf("" + i + ".example.org", 60010, i); + sns[i] = ServerName.valueOf("" + i + ".example.org", 16010, i); } return sns; } diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/HBaseConfiguration.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/HBaseConfiguration.java index 5d374413604..a436901ec8d 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/HBaseConfiguration.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/HBaseConfiguration.java @@ -181,7 +181,7 @@ public class HBaseConfiguration extends Configuration { /** For debugging. Dump configurations to system output as xml format. * Master and RS configurations can also be dumped using - * http services. e.g. "curl http://master:60010/dump" + * http services. e.g. "curl http://master:16010/dump" */ public static void main(String[] args) throws Exception { HBaseConfiguration.create().writeXml(System.out); diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java index a4f8c07aeaa..f1cb5e1c422 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java @@ -139,10 +139,10 @@ public final class HConstants { public static final String MASTER_PORT = "hbase.master.port"; /** default port that the master listens on */ - public static final int DEFAULT_MASTER_PORT = 60000; + public static final int DEFAULT_MASTER_PORT = 16000; /** default port for master web api */ - public static final int DEFAULT_MASTER_INFOPORT = 60010; + public static final int DEFAULT_MASTER_INFOPORT = 16010; /** Configuration key for master web API port */ public static final String MASTER_INFO_PORT = "hbase.master.info.port"; @@ -217,10 +217,10 @@ public final class HConstants { public static final String REGIONSERVER_PORT = "hbase.regionserver.port"; /** Default port region server listens on. */ - public static final int DEFAULT_REGIONSERVER_PORT = 60020; + public static final int DEFAULT_REGIONSERVER_PORT = 16020; /** default port for region server web api */ - public static final int DEFAULT_REGIONSERVER_INFOPORT = 60030; + public static final int DEFAULT_REGIONSERVER_INFOPORT = 16030; /** A configuration key for regionserver info port */ public static final String REGIONSERVER_INFO_PORT = @@ -943,7 +943,7 @@ public final class HConstants { * The port to use for the multicast messages. */ public static final String STATUS_MULTICAST_PORT = "hbase.status.multicast.port"; - public static final int DEFAULT_STATUS_MULTICAST_PORT = 60100; + public static final int DEFAULT_STATUS_MULTICAST_PORT = 16100; public static final long NO_NONCE = 0; diff --git a/hbase-common/src/main/resources/hbase-default.xml b/hbase-common/src/main/resources/hbase-default.xml index 9f7a75c7215..a8ac30369c4 100644 --- a/hbase-common/src/main/resources/hbase-default.xml +++ b/hbase-common/src/main/resources/hbase-default.xml @@ -98,12 +98,12 @@ possible configurations would overwhelm and obscure the important. hbase.master.port - 60000 + 16000 The port the HBase Master should bind to. hbase.master.info.port - 60010 + 16010 The port for the HBase Master web UI. Set to -1 if you do not want a UI instance run. @@ -169,12 +169,12 @@ possible configurations would overwhelm and obscure the important. hbase.regionserver.port - 60020 + 16020 The port the HBase RegionServer binds to. hbase.regionserver.info.port - 60030 + 16030 The port for the HBase RegionServer web UI Set to -1 if you do not want the RegionServer UI to run. diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/BackupMasterStatusTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/BackupMasterStatusTmpl.jamon index 4961de19dee..d4a5408d9ac 100644 --- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/BackupMasterStatusTmpl.jamon +++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/BackupMasterStatusTmpl.jamon @@ -44,7 +44,11 @@ ServerName [] serverNames = masters.toArray(new ServerName[masters.size()]); <%if (!master.isActiveMaster()) %> <%if serverNames[0] != null %>

Master

- /master-status" target="_blank"><% serverNames[0].getHostname() %> + /master-status" + target="_blank"> + <% serverNames[0].getHostname() %> + <%else> Unable to parse master hostname. @@ -62,7 +66,11 @@ ServerName [] serverNames = masters.toArray(new ServerName[masters.size()]); for (ServerName serverName : serverNames) { - /master-status" target="_blank"><% serverName.getHostname() %> + /master-status" + target="_blank"> + <% serverName.getHostname() %> + <% serverName.getPort() %> <% new Date(serverName.getStartcode()) %> diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.jamon index 1f56e61cdf4..bd51662f284 100644 --- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.jamon +++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.jamon @@ -40,7 +40,7 @@ org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.RegionLoad; ServerInfo serverInfo = ProtobufUtil.getServerInfo(regionServer); ServerName serverName = ProtobufUtil.toServerName(serverInfo.getServerName()); List onlineRegions = ProtobufUtil.getOnlineRegions(regionServer); - int masterInfoPort = regionServer.getConfiguration().getInt("hbase.master.info.port", 60010); + int masterInfoPort = regionServer.getConfiguration().getInt("hbase.master.info.port", 16010);