HBASE-23050 Use RSGroupInfoManager to get rsgroups in master UI's rsgroup part (#776)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
e12064b725
commit
e8e9eecef1
|
@ -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>
|
||||
<%if !master.isInMaintenanceMode() %>
|
||||
<%if master.getMasterCoprocessorHost().findCoprocessor("RSGroupAdminEndpoint") != null &&
|
||||
<%if master.getConfiguration().getBoolean(RSGroupInfoManager.RS_GROUP_ENABLED, false) &&
|
||||
serverManager.getOnlineServersList().size() > 0 %>
|
||||
<section>
|
||||
<h2><a name="rsgroup">RSGroup</a></h2>
|
||||
|
|
|
@ -41,7 +41,7 @@ ServerManager serverManager;
|
|||
org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix;
|
||||
</%import>
|
||||
<%java>
|
||||
List<RSGroupInfo> groups = RSGroupTableAccessor.getAllRSGroupInfo(master.getConnection());
|
||||
List<RSGroupInfo> groups = master.getRSGroupInfoManager().listRSGroups();
|
||||
</%java>
|
||||
<%if (groups != null && groups.size() > 0)%>
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue