From 5c38e422547b53026436b1d638aa19538c51b9e1 Mon Sep 17 00:00:00 2001 From: Zhihong Yu Date: Thu, 7 Feb 2013 23:00:43 +0000 Subject: [PATCH] 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 --- .../org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon index f1e70e3759e..1b9086d4956 100644 --- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon +++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon @@ -292,6 +292,7 @@ org.apache.hadoop.hbase.HBaseConfiguration; <%if (frags != null) %> Frag. + Online Regions Description <%for HTableDescriptor htDesc : tables%> @@ -300,6 +301,7 @@ org.apache.hadoop.hbase.HBaseConfiguration; <%if (frags != null) %> <% frags.get(htDesc.getNameAsString()) != null ? frags.get(htDesc.getNameAsString()).intValue() + "%" : "n/a" %> + <% master.getAssignmentManager().getRegionStates().getRegionsOfTable(htDesc.getName()).size() %> <% htDesc.toStringCustomizedValues() %>