HBASE-7561 Display the total number of regions for a given table on the master webUI (Michael Weng)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1443766 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1a4a882284
commit
5c38e42254
|
@ -292,6 +292,7 @@ org.apache.hadoop.hbase.HBaseConfiguration;
|
||||||
<%if (frags != null) %>
|
<%if (frags != null) %>
|
||||||
<th title="Fragmentation - Will be 0% after a major compaction and fluctuate during normal usage.">Frag.</th>
|
<th title="Fragmentation - Will be 0% after a major compaction and fluctuate during normal usage.">Frag.</th>
|
||||||
</%if>
|
</%if>
|
||||||
|
<th>Online Regions</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
</tr>
|
</tr>
|
||||||
<%for HTableDescriptor htDesc : tables%>
|
<%for HTableDescriptor htDesc : tables%>
|
||||||
|
@ -300,6 +301,7 @@ org.apache.hadoop.hbase.HBaseConfiguration;
|
||||||
<%if (frags != null) %>
|
<%if (frags != null) %>
|
||||||
<td align="center"><% frags.get(htDesc.getNameAsString()) != null ? frags.get(htDesc.getNameAsString()).intValue() + "%" : "n/a" %></td>
|
<td align="center"><% frags.get(htDesc.getNameAsString()) != null ? frags.get(htDesc.getNameAsString()).intValue() + "%" : "n/a" %></td>
|
||||||
</%if>
|
</%if>
|
||||||
|
<td><% master.getAssignmentManager().getRegionStates().getRegionsOfTable(htDesc.getName()).size() %>
|
||||||
<td><% htDesc.toStringCustomizedValues() %></td>
|
<td><% htDesc.toStringCustomizedValues() %></td>
|
||||||
</tr>
|
</tr>
|
||||||
</%for>
|
</%for>
|
||||||
|
|
Loading…
Reference in New Issue