Simple scripts to report the status of the cluster

Besides the health of the HBase-related daemons and their logs, what you might want to monitor is the overview of the current status of the cluster. This status basically includes:

  • The HBase hbck result showing whether the HBase tables are consistent
  • The Hadoop fsck result showing whether HDFS is healthy
  • The remaining HDFS space

In this recipe, we will create a check_hbase Nagios plugin to perform the task of monitoring. We will install our check_hbase plugin on the master node of the cluster, and remotely execute it with Nagios from the monitor server using the NRPE Nagios plugin.

Getting ready

We assume that you have installed and configured the Nagios NRPE plugin on your monitor and master server. ...

Get HBase Administration Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.