Starting and Stopping HBase Using the Command Line

When starting and stopping CDH services, order is important. See Starting CDH Services and Stopping CDH Services Using the Command Line for details. If you use Cloudera Manager, follow these instructions instead.

Starting HBase

When starting HBase, it is important to start the HMaster, followed by the RegionServers, then the Thrift server.

  1. 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.
  2. 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.
  3. To start the Thrift server, use the hbase-thrift start on RHEL or SuSE, or the hadoop-hbase-thrift start on Ubuntu or Debian.

Stopping HBase

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.

  1. Shut down the Thrift server by using the hbase-thrift stop command on the Thrift server host. sudo service hbase-thrift stop
  2. Shut down each RegionServer by using the hadoop-hbase-regionserver stop command on the RegionServer host.
    sudo service hadoop-hbase-regionserver stop
  3. Shut down backup HMasters, followed by the main HMaster, by using the hbase-master stop command.
    sudo service hbase-master stop