HBASE-16026 Master UI should display status of additional ZK switches

This commit is contained in:
Mikhail Antonov 2016-06-15 12:58:41 -07:00
parent 114fe7a81e
commit 5f9d1a71c8
1 changed files with 15 additions and 0 deletions

View File

@ -39,6 +39,7 @@ org.apache.hadoop.hbase.ServerLoad;
org.apache.hadoop.hbase.ServerName;
org.apache.hadoop.hbase.TableName;
org.apache.hadoop.hbase.client.Admin;
org.apache.hadoop.hbase.client.MasterSwitchType;
org.apache.hadoop.hbase.client.SnapshotDescription;
org.apache.hadoop.hbase.master.AssignmentManager;
org.apache.hadoop.hbase.master.DeadServer;
@ -168,6 +169,20 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
is only expected to be disabled during rolling upgrade scenarios.
</div>
</%if>
<%if !master.isSplitOrMergeEnabled(MasterSwitchType.SPLIT) %>
<div class="alert alert-warning">
Region splits are disabled. This may be the result of HBCK aborting while
running in repair mode. Manually enable splits from the HBase shell,
or re-run HBCK in repair mode.
</div>
</%if>
<%if !master.isSplitOrMergeEnabled(MasterSwitchType.MERGE) %>
<div class="alert alert-warning">
Region merges are disabled. This may be the result of HBCK aborting while
running in repair mode. Manually enable merges from the HBase shell,
or re-run HBCK in repair mode.
</div>
</%if>
<section>
<h2>Region Servers</h2>