Configuring the HBase Canary
The HBase canary is an optional service that periodically checks that a RegionServer is alive. This canary is different from the Cloudera Service Monitoring canary and is provided by the HBase service. The HBase canary is disabled by default. After enabling the canary, you can configure several different thresholds and intervals relating to it, as well as exclude certain tables from the canary checks. The canary works on Kerberos-enabled clusters if you have the HBase client configured to use Kerberos.
Configure the HBase Canary Using Cloudera Manager
Minimum Required Role: Full Administrator
- Go to the HBase service.
- Click the Configuration tab.
- Select .
- Select .
- Locate the HBase Canary property or search for it by typing its name in the Search box. Several properties have Canary in the property name.
- Select the checkbox.
- Review other HBase Canary properties to configure the specific behavior of the canary.
If more than one role group applies to this configuration, edit the value for the appropriate role group. See Modifying Configuration Properties Using Cloudera Manager.
- Click Save Changes to commit the changes.
- Restart the role.
- Restart the service.
Configure the HBase Canary Using the Command Line
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 a lower version of CDH, see the documentation for that version located at Cloudera Documentation.
The HBase canary is a Java class. To run it from the command line, in the foreground, issue a command similar to the following, as the HBase user:
$ /usr/bin/hbase org.apache.hadoop.hbase.tool.Canary
To start the canary in the background, add the --daemon option. You can also use this option in your HBase startup scripts.
$ /usr/bin/hbase org.apache.hadoop.hbase.tool.Canary --daemon
The canary has many options. To see usage instructions, add the --help parameter:
$ /usr/bin/hbase org.apache.hadoop.hbase.tool.Canary --help
Page generated July 8, 2016.
<< Configuring HBase Garbage Collection | ©2016 Cloudera, Inc. All rights reserved | Checking and Repairing HBase Tables >> |
Terms and Conditions Privacy Policy |