Database Reference
In-Depth Information
The preceding methods cause the table or region to split alike. In the case of a table,
it iterates over all regions of that table and implicitly invokes the split command
on each of them.
setBalancerRunning(boolean on, boolean synchronous)
Boolean boolean balancer()
The irst method in the preceding command switches the region balancer on or off
and for the enabled balancer. A call to the balancer() method will start the process
of balancing regions across the servers.
void shutdown()
void stopMaster() {
void stopRegionServer(String hostnamePort)
The preceding command calls either shuts down the entire cluster, stops the master
server, or stops a particular region server alone. Once invoked, the affected servers
will be stopped and there is no way to revert the process.
The HBaseAdmin.getClusterStatus() command returns the ClusterStatus
instance, containing all the information about the master server and current state
of the cluster. The following methods are available within the ClusterStatus
class to access the different information available within the cluster:
int getServersSize() : This returns the number of live region servers
known to the master server.
Collection<ServerName>getServers() : This returns the list of live servers.
Server names in the collection are the ServerName instances that contain the
hostname, RPC port, and start code.
int getDeadServers() : This returns the number of servers listed as dead.
Collection<ServerName>getDeadServerNames() : This returns the list of
dead servers. Server names in the collection are ServerName instances that
contain the hostname, RPC port, and start code.
double getAverageLoad() : This returns the total average number
of regions per region server.
 
Search WWH ::




Custom Search