HBase High Availability
Most aspects of HBase are highly available in a standard configuration. A cluster typically consists of one Master and three or more RegionServers, with data stored in HDFS. To ensure that every component is highly available, configure one or more backup Masters. The backup Masters run on other hosts than the active Master.
Enabling HBase High Availability Using Cloudera Manager
- Go to the HBase service.
- Follow the process for adding a role instance and add a backup Master to a different host than the one on which the active Master is running.
Enabling HBase High Availability Using the Command Line
To configure backup Masters, create a new file in the conf/ directory which will be distributed across your cluster, called backup-masters. For each backup Master you want to start, add a new line with the hostname where the Master should be started. Each host that will run a Master needs to have all of the configuration files available. In general, it is a good practice to distribute the entire conf/ directory across all cluster nodes.
$ jps 15930 HRegionServer 16194 Jps 15838 HQuorumPeer 16010 HMaster
$ kill 16010