HBASE-20224 Web UI is broken in standalone mode
Changes for HBASE-20027 seem to cause UI not showing up on default port in standalone mode. For concurrent unit test execution, individual tests can set hbase.localcluster.assign.random.ports to true or modify test/resources/hbase-site.xml.
This commit is contained in:
parent
c20a2a4673
commit
dd9fe813ec
|
@ -29,4 +29,11 @@
|
||||||
<name>hbase.hconnection.threads.keepalivetime</name>
|
<name>hbase.hconnection.threads.keepalivetime</name>
|
||||||
<value>3</value>
|
<value>3</value>
|
||||||
</property>
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>hbase.localcluster.assign.random.ports</name>
|
||||||
|
<value>true</value>
|
||||||
|
<description>
|
||||||
|
Assign random ports to master and RS info server (UI).
|
||||||
|
</description>
|
||||||
|
</property>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
@ -158,4 +158,11 @@
|
||||||
<name>hbase.hconnection.threads.keepalivetime</name>
|
<name>hbase.hconnection.threads.keepalivetime</name>
|
||||||
<value>3</value>
|
<value>3</value>
|
||||||
</property>
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>hbase.localcluster.assign.random.ports</name>
|
||||||
|
<value>true</value>
|
||||||
|
<description>
|
||||||
|
Assign random ports to master and RS info server (UI).
|
||||||
|
</description>
|
||||||
|
</property>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
@ -41,4 +41,11 @@
|
||||||
WARNING: Doing so may expose you to additional risk of data loss!
|
WARNING: Doing so may expose you to additional risk of data loss!
|
||||||
</description>
|
</description>
|
||||||
</property>
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>hbase.localcluster.assign.random.ports</name>
|
||||||
|
<value>true</value>
|
||||||
|
<description>
|
||||||
|
Assign random ports to master and RS info server (UI).
|
||||||
|
</description>
|
||||||
|
</property>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
@ -139,4 +139,11 @@
|
||||||
<description>Skip sanity checks in tests
|
<description>Skip sanity checks in tests
|
||||||
</description>
|
</description>
|
||||||
</property>
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>hbase.localcluster.assign.random.ports</name>
|
||||||
|
<value>true</value>
|
||||||
|
<description>
|
||||||
|
Assign random ports to master and RS info server (UI).
|
||||||
|
</description>
|
||||||
|
</property>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
@ -141,7 +141,7 @@ public class LocalHBaseCluster {
|
||||||
|
|
||||||
// Always have masters and regionservers come up on port '0' so we don't
|
// Always have masters and regionservers come up on port '0' so we don't
|
||||||
// clash over default ports.
|
// clash over default ports.
|
||||||
if (conf.getBoolean(ASSIGN_RANDOM_PORTS, true)) {
|
if (conf.getBoolean(ASSIGN_RANDOM_PORTS, false)) {
|
||||||
conf.set(HConstants.MASTER_PORT, "0");
|
conf.set(HConstants.MASTER_PORT, "0");
|
||||||
conf.set(HConstants.REGIONSERVER_PORT, "0");
|
conf.set(HConstants.REGIONSERVER_PORT, "0");
|
||||||
if (conf.getInt(HConstants.REGIONSERVER_INFO_PORT, 0) != -1) {
|
if (conf.getInt(HConstants.REGIONSERVER_INFO_PORT, 0) != -1) {
|
||||||
|
|
|
@ -108,7 +108,7 @@ public class MiniHBaseCluster extends HBaseCluster {
|
||||||
Class<? extends MiniHBaseCluster.MiniHBaseClusterRegionServer> regionserverClass)
|
Class<? extends MiniHBaseCluster.MiniHBaseClusterRegionServer> regionserverClass)
|
||||||
throws IOException, InterruptedException {
|
throws IOException, InterruptedException {
|
||||||
super(conf);
|
super(conf);
|
||||||
if (conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true)) {
|
if (conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, false)) {
|
||||||
conf.set(HConstants.MASTER_PORT, "0");
|
conf.set(HConstants.MASTER_PORT, "0");
|
||||||
if (conf.getInt(HConstants.MASTER_INFO_PORT, 0) != -1) {
|
if (conf.getInt(HConstants.MASTER_INFO_PORT, 0) != -1) {
|
||||||
conf.set(HConstants.MASTER_INFO_PORT, "0");
|
conf.set(HConstants.MASTER_INFO_PORT, "0");
|
||||||
|
|
|
@ -158,4 +158,11 @@
|
||||||
<name>hbase.hconnection.threads.keepalivetime</name>
|
<name>hbase.hconnection.threads.keepalivetime</name>
|
||||||
<value>3</value>
|
<value>3</value>
|
||||||
</property>
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>hbase.localcluster.assign.random.ports</name>
|
||||||
|
<value>true</value>
|
||||||
|
<description>
|
||||||
|
Assign random ports to master and RS info server (UI).
|
||||||
|
</description>
|
||||||
|
</property>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
@ -154,4 +154,11 @@
|
||||||
Enable replay sanity checks on procedure tests.
|
Enable replay sanity checks on procedure tests.
|
||||||
</description>
|
</description>
|
||||||
</property>
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>hbase.localcluster.assign.random.ports</name>
|
||||||
|
<value>true</value>
|
||||||
|
<description>
|
||||||
|
Assign random ports to master and RS info server (UI).
|
||||||
|
</description>
|
||||||
|
</property>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
Loading…
Reference in New Issue