Starting and Stopping HBase Using the Command Line
When starting and stopping CDH services, order is important. See Starting CDH Services Using the Command Line and Stopping CDH Services Using the Command Line for details. If you use Cloudera Manager, follow these instructions instead.
When starting HBase, it is important to start the HMaster, followed by the RegionServers, then the Thrift server.
- To start a HBase cluster using the command line, start the HBase Master by using the sudo hbase-master start command on RHEL or SuSE, or the sudo hadoop-hbase-regionserver start command on Ubuntu or Debian. The HMaster starts the RegionServers automatically.
- To start a RegionServer manually, use the sudo hbase-regionserver start command on RHEL or SuSE, or the sudo hadoop-hbase-regionserver start command on Ubuntu or Debian.
- To start the Thrift server, use the hbase-thrift start on RHEL or SuSE, or the hadoop-hbase-thrift start on Ubuntu or Debian.
When stopping HBase, it is important to stop the Thrift server, followed by each RegionServer, followed by any backup HMasters, and finally the main HMaster.
- Shut down the Thrift server by using the hbase-thrift stop command on the Thrift server host. sudo service hbase-thrift stop
- Shut down each RegionServer by using the hadoop-hbase-regionserver stop command on the RegionServer host.
sudo service hadoop-hbase-regionserver stop
- Shut down backup HMasters, followed by the main HMaster, by using the hbase-master stop command.
sudo service hbase-master stop