From 8a50a0cce70ce4f3a1d5e98e808c632721b75038 Mon Sep 17 00:00:00 2001 From: Ted Yu Date: Mon, 6 Oct 2014 16:45:33 +0000 Subject: [PATCH] HBASE-12011 Add namespace column during display of user tables (Srikanth Srungarapu) --- .../apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 0e3258820c5..d75406ea7cf 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 @@ -352,6 +352,7 @@ AssignmentManager assignmentManager = master.getAssignmentManager(); <%if (tables != null && tables.length > 0)%> + <%if (frags != null) %> @@ -361,9 +362,10 @@ AssignmentManager assignmentManager = master.getAssignmentManager(); <%for HTableDescriptor htDesc : tables%> - + + <%if (frags != null) %> - +
Namespace Table NameFrag.
><% htDesc.getTableName().getNameAsString() %> <% htDesc.getTableName().getNamespaceAsString() %>><% htDesc.getTableName().getQualifierAsString() %> <% frags.get(htDesc.getTableName().getNameAsString()) != null ? frags.get(htDesc.getTableName().getNameAsString()).intValue() + "%" : "n/a" %><% frags.get(htDesc.getTableName().getNameAsString()) != null ? frags.get(htDesc.getTableName().getQualifierAsString()).intValue() + "%" : "n/a" %> <% master.getAssignmentManager().getRegionStates().getRegionsOfTable(htDesc .getTableName()).size() %>