From 0a99d9dd9a9cccc10168b58a76d0a61c0df7b4da Mon Sep 17 00:00:00 2001 From: Ashish Singhi Date: Thu, 6 Aug 2015 10:59:51 +0530 Subject: [PATCH] HBASE-14021 Quota table has a wrong description on the UI --- .../org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon | 10 +++++++--- 1 file changed, 7 insertions(+), 3 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 46cdfa9..2be0722 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 @@ -53,6 +53,7 @@ org.apache.hadoop.hbase.master.DeadServer; org.apache.hadoop.hbase.protobuf.ProtobufUtil; org.apache.hadoop.hbase.security.visibility.VisibilityConstants; org.apache.hadoop.hbase.security.access.AccessControlLists; +org.apache.hadoop.hbase.quotas.QuotaUtil; <%if format.equals("json") %> @@ -369,8 +370,11 @@ AssignmentManager assignmentManager = master.getAssignmentManager(); description = "The hbase:acl table holds information about acl"; } else if (tableName.equals(VisibilityConstants.LABELS_TABLE_NAME)){ description = "The hbase:labels table holds information about visibility labels"; - } else { - description = "The .NAMESPACE. table holds information about namespaces."; + } else if (tableName.equals(TableName.NAMESPACE_TABLE_NAME)){ + description = "The hbase:namespace table holds information about namespaces."; + } else if (tableName.equals(QuotaUtil.QUOTA_TABLE_NAME)){ + description = "The hbase:quota table holds quota information about number" + + " or size of requests in a given time frame."; } <% description %> @@ -382,7 +386,7 @@ AssignmentManager assignmentManager = master.getAssignmentManager(); <%def userTables> <%java> - HTableDescriptor[] tables = null; + HTableDescriptor[] tables = null; try (Admin admin = master.getConnection().getAdmin()) { tables = master.isInitialized() ? admin.listTables() : null; } -- 1.9.2.msysgit.0