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.8.x. 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.
- 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.
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 July 8, 2016.
<< Configuring init to Start Hadoop System Services | ©2016 Cloudera, Inc. All rights reserved | Stopping CDH Services Using the Command Line >> |
Terms and Conditions Privacy Policy |