Package org.apache.hadoop.hbase.rsgroup
Class RSGroupAdminClient
java.lang.Object
org.apache.hadoop.hbase.rsgroup.RSGroupAdminClient
Deprecated.
Client used for managing region server group information.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRSGroup(String groupName) Deprecated.Creates a new RegionServer group with the given name.balanceRSGroup(String groupName, BalanceRequest request) Deprecated.Balance regions in the given RegionServer group.getRSGroupInfo(String groupName) Deprecated.GetsRSGroupInfofor given group name.getRSGroupInfoOfTable(TableName tableName) Deprecated.GetsRSGroupInfofor the given table's group.getRSGroupOfServer(Address hostPort) Deprecated.Retrieve the RSGroupInfo a server is affiliated toDeprecated.Lists current set of RegionServer groups.voidmoveServers(Set<Address> servers, String targetGroup) Deprecated.Move given set of servers to the specified target RegionServer group.voidDeprecated.Move given set of servers and tables to the specified target RegionServer group.voidmoveTables(Set<TableName> tables, String targetGroup) Deprecated.Move given set of tables to the specified target RegionServer group.voidremoveRSGroup(String name) Deprecated.Removes RegionServer group associated with the given name.voidremoveServers(Set<Address> servers) Deprecated.Remove decommissioned servers from rsgroup.
-
Field Details
-
stub
private org.apache.hadoop.hbase.shaded.protobuf.generated.RSGroupAdminProtos.RSGroupAdminService.BlockingInterface stubDeprecated. -
admin
Deprecated.
-
-
Constructor Details
-
RSGroupAdminClient
Deprecated.- Throws:
IOException
-
-
Method Details
-
getRSGroupInfo
Deprecated.GetsRSGroupInfofor given group name.- Throws:
IOException
-
getRSGroupInfoOfTable
Deprecated.GetsRSGroupInfofor the given table's group.- Throws:
IOException
-
moveServers
Deprecated.Move given set of servers to the specified target RegionServer group.- Throws:
IOException
-
moveTables
Deprecated.Move given set of tables to the specified target RegionServer group. This will unassign all of a table's region so it can be reassigned to the correct group.- Throws:
IOException
-
addRSGroup
Deprecated.Creates a new RegionServer group with the given name.- Throws:
IOException
-
removeRSGroup
Deprecated.Removes RegionServer group associated with the given name.- Throws:
IOException
-
balanceRSGroup
Deprecated.Balance regions in the given RegionServer group.- Returns:
- BalanceResponse details about the balancer run
- Throws:
IOException
-
listRSGroups
Deprecated.Lists current set of RegionServer groups.- Throws:
IOException
-
getRSGroupOfServer
Deprecated.Retrieve the RSGroupInfo a server is affiliated to- Parameters:
hostPort- HostPort to get RSGroupInfo for- Throws:
IOException
-
moveServersAndTables
public void moveServersAndTables(Set<Address> servers, Set<TableName> tables, String targetGroup) throws IOException Deprecated.Move given set of servers and tables to the specified target RegionServer group.- Parameters:
servers- set of servers to movetables- set of tables to movetargetGroup- the target group name- Throws:
IOException- if moving the server and tables fail
-
removeServers
Deprecated.Remove decommissioned servers from rsgroup. 1. Sometimes we may find the server aborted due to some hardware failure and we must offline the server for repairing. Or we need to move some servers to join other clusters. So we need to remove these servers from the rsgroup. 2. Dead/recovering/live servers will be disallowed.- Parameters:
servers- set of servers to remove- Throws:
IOException
-
Admininstead.