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 39e0a60a722..d282f338bd2 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 @@ -52,6 +52,7 @@ org.apache.hadoop.hbase.master.RegionState; org.apache.hadoop.hbase.master.ServerManager; org.apache.hadoop.hbase.protobuf.ProtobufUtil; org.apache.hadoop.hbase.quotas.QuotaUtil; +org.apache.hadoop.hbase.rsgroup.RSGroupInfoManager; org.apache.hadoop.hbase.security.access.PermissionStorage; org.apache.hadoop.hbase.security.visibility.VisibilityConstants; org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription; @@ -224,7 +225,7 @@ AssignmentManager assignmentManager = master.getAssignmentManager(); <& AssignmentManagerStatusTmpl; assignmentManager=master.getAssignmentManager()&> <%if !master.isInMaintenanceMode() %> - <%if master.getMasterCoprocessorHost().findCoprocessor("RSGroupAdminEndpoint") != null && + <%if master.getConfiguration().getBoolean(RSGroupInfoManager.RS_GROUP_ENABLED, false) && serverManager.getOnlineServersList().size() > 0 %>

RSGroup

diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RSGroupListTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RSGroupListTmpl.jamon index 7f15aa68c5d..765eab97837 100644 --- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RSGroupListTmpl.jamon +++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RSGroupListTmpl.jamon @@ -41,7 +41,7 @@ ServerManager serverManager; org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix; <%java> -List groups = RSGroupTableAccessor.getAllRSGroupInfo(master.getConnection()); +List groups = master.getRSGroupInfoManager().listRSGroups(); <%if (groups != null && groups.size() > 0)%> diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupInfoManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupInfoManager.java index 3f73f783770..0eb15e9f74b 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupInfoManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupInfoManager.java @@ -32,7 +32,7 @@ import org.apache.yetus.audience.InterfaceAudience; @InterfaceAudience.Private public interface RSGroupInfoManager { - static final String RS_GROUP_ENABLED = "hbase.balancer.rsgroup.enabled"; + public static final String RS_GROUP_ENABLED = "hbase.balancer.rsgroup.enabled"; void start();