Skip to content

Latest commit

 

History

History
190 lines (165 loc) · 7.92 KB

README.mediawiki

File metadata and controls

190 lines (165 loc) · 7.92 KB

The ZenPacks.zenoss.HBase ZenPack monitors HBase clusters via Apache HBase REST Interface and Python <samp class="ph codeph">twisted.web.client</samp> asynchronous framework.

Table of Contents

Gallery

<gallery widths="250px" heights="127px"> HBase Region Server.png HBase Region.png HBase Table.png HBase Cluster graphs.png HBase Impact.png External Impact Relationships.png </gallery>

Features

The features added by this ZenPack can be summarized as follows. They are each detailed further below.

  • Discovery and periodic remodeling of relevant components.
  • Performance monitoring.
  • Event monitoring.
  • Optional service impact with addition of Zenoss Service Dynamics product.

Discovery

The following components will be automatically discovered through zProperties you provide:

Region Servers
Attributes: Name (DomainName:port), Start Code, Handler Count, Memstore Upper Limit, Memstore Lower Limit, Log Flush Interval
Collections: Regions
Regions
Attributes: Table, Start Key, Region ID, Region Server, Memstore Flush Size, Max File Size
Tables
Attributes: Name, Number of Column Families, Column Family Block Size, Compaction, Enabled

Performance Monitoring

The following metrics will be collected and graphed every 5 minutes by default:

HBase Cluster Metrics
Region Server Statistics: The number of dead, live and overall number of Region Servers
Performance: Average load, Requests
Region Servers
Region Statistics: Number of Regions, Storefiles and Stores
Memory Usage: Max and Used Heap Memory Size (MB)
Storage Statistics: Memstore Size (MB), Storefile Index Size (MB), Storefile Size (MB)
Requests: Read, Write, Requests/sec
Blocks: Block Cache Count, Block Cache Evicted Count, Block Cache Hit Ratio (%), Block Cache Hit Caching Ratio (%)
Performance metrics: Compaction Queue Length, Flush Queue Length, Call Queue Length
Regions
Storage Statistics: Memstore Size (MB), Storefile Index Size (MB), Storefile Size (MB), Storefiles, Stores
Requests: Read, Write

Event monitoring

The following events will be triggered with respect to the monitored metrics:

HBase Cluster
Error: Connection refused/Credentials not valid.
Critical: The percentage of dead servers exceeds 50%.
Warning: The percentage of dead servers exceeds 10%.
Region Servers
Error: Connection refused/Credentials not valid.
Error: The server is dead.
Warning: The Memstore Size is nearing or exceeding its global.memstore.size (defaults to 40% of maxHeapSize).
Info: One or more region servers have been added/removed.
Regions
Error: Connection refused/Credentials not valid.
Warning: The Memstore Size is nearing or exceeding its flush size (128MB by default).
Warning: The Storefile Size is nearing or exceeding the recommended maximum size (10GB by default).
Tables
Info: New table is added.
Error: Connection refused/Credentials not valid.
Error: The table is disabled or dropped.

Service Impact

When combined with the Zenoss Service Dynamics product, this ZenPack adds built-in service impact capability for HBase. The following service impact relationships are automatically added. These will be included in any services containing one or more of the explicitly mentioned entities.

Service Impact Relationships
  • Region failure affects related Table.
  • Region Server failure affects related Regions.
  • Region servers are affected by HBase hosting device failure.
External Impact Relationships
  • Region servers are affected by hosting Hadoop Data Node failure.
To add HBase as service to be monitored, add a Dynamic Service Organizer for the service and then add a Dynamic Service to it. Select the new Dynamic Service from the Dynamic Service tree on the left pane and then add the table(s) supporting your HBase service and add them. The Service Dependency tree will be created automatically for your HBase Service.

Usage

Use the following steps to start monitoring HBase:

  1. Select Infrastructure from the navigation bar.
  2. Click the device name in the device list. The device overview page appears.
  3. Select Configuration Properties from the left panel.
  4. Set zHBasePassword, zHBaseUsername and select https for zHBaseScheme if you have Basic access authentication configured on your HBase master (otherwise leave zHBasePassword and zHBaseUsername blank).
  5. Set the zHBaseRestPort, zHBaseMasterPort and zHBaseRegionServerPort zProperties, if the values for those ports differ from the default ones.
  6. Navigate to the Modeler plugins page of the device containing your HBase server, add the HBaseCollector and HBaseTableCollector modeler plugins.
  7. Select Model device from the gear menu.

Alternatively you can use zenbatchload to add HBase monitoring servers from the command line. To do this, you must create a text file with hostname, username and password of all the servers you want to add. The devices should be added under the target machine device class (e.g. '/Devices/Server/Linux' in the example below).

<syntaxhighlight lang="text"></syntaxhighlight> /Devices/Server/Linux zCollectorPlugins=['HBaseCollector'], zHBaseRestPort='8080', zHBaseMasterPort='60010', zHBaseRegionServerPort='60030', zHBasePassword=, zHBaseUsername=, zHBaseScheme='<http(s)>' &lt;/syntaxhighlight&gt;</http(s)>

You can then load the HBase monitoring servers into Zenoss Core or Resource Manager as devices with the following command. <console></console> $ ##i##zenbatchload <filename> &lt;/console&gt;</filename>

Access Authentication to Apache HBase

Access authentication may be configured on the target machine in one of the following ways:

  1. apply appropriate firewall rules, which would permit only an explicit set of IP addresses permission to access HBase;
  2. configure proxy authentication.

Prerequisites

This ZenPack uses the Apache HBase REST Interface for performance monitoring, therefore the rest daemon should be started and running on the port specified in zHBaseRestPort zProperty.

You can start the rest daemon by executing the following command: bin/hbase&amp;amp&#59;amp&amp;&#35;59&#59;&amp;amp&#59;&amp;&#35;35&#59;35&amp;&#35;59&#59;45&amp;amp&#59;&amp;&#35;35&#59;59&amp;&#35;59&#59;daemon.sh start rest

Please make sure that the ports for the HBase Master web UI and Hbase Regionserver web UI are correctly set in zHBaseMasterPort and zHBaseRegionServerPort zProperties, and that the UI instances are running, as they are used for monitoring.

Troubleshooting

Please refer to the Zenoss Service Dynamics documentation if you run into any of the following problems:

  • ZenPack will not install
  • Adding a device fails
  • Don't understand how to add a device
  • Don't understand how to model a device
If you cannot find the answer in the documentation, then Resource Manager (Service Dynamics) users should contact Zenoss Customer Support. Core users can use the #zenoss IRC channel or the community.zenoss.org forums.

Installed Items

Installing this ZenPack will add the following items to your Zenoss system.

Modeler Plugins
  • HBaseCollector
  • HBaseTableCollector
Monitoring Templates
  • HBaseCluster (in /Device)
  • HBaseRegionServer (in /Device)
  • HBaseHRegion (in /Device)
  • HBaseTable (in /Device)
Component Types
  • HBaseRegionServer (on related device)
  • HBaseHRegion (on HBaseRegionServer)
  • HBaseTable (on related device)

Daemons

Type Name
Performance Collector zenpython

Changes

1.0.0
  • Initial release