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.
Important:
- If you use Cloudera Manager, do not use these command-line instructions.
- This information applies specifically to CDH 5.15.0. If you use an earlier version of CDH, see the documentation for that version located at Cloudera Documentation.
Starting HBase
When starting HBase, it is important to start the HMaster, followed by the RegionServers, then the Thrift server.
If you need the ability to perform a rolling restart, Cloudera recommends managing your cluster with Cloudera Manager.
- 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.
- The Thrift service has no dependencies and can be restarted at any time. 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.
- 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
Page generated May 18, 2018.
<< Starting and Stopping HBase | ©2016 Cloudera, Inc. All rights reserved | Accessing HBase by using the HBase Shell >> |
Terms and Conditions Privacy Policy |