The HBase Service
Cloudera Manager requires certain additional steps to set up and configure the HBase service.
Creating the HBase Root Directory
When adding the HBase service, the Add Service wizard automatically creates a root directory for HBase in HDFS. If you quit the Add Service wizard or it does not finish, you can create the root directory outside the wizard by doing these steps:
- Choose Create Root Directory from the Actions menu in the HBase > Status tab.
- Click Create Root Directory again to confirm.
Graceful Shutdown
A graceful shutdown of an HBase RegionServer allows the regions hosted by that RegionServer to be moved to other RegionServers before stopping the RegionServer. Cloudera Manager provides the following configuration options to perform a graceful shutdown of either an HBase RegionServer or the entire service.
Gracefully Shutting Down an HBase RegionServer
- Go to the HBase service.
- Click the Instances tab.
- From the list of Role Instances, select the RegionServer you want to shut down gracefully.
- Select .
Gracefully Shutting Down the HBase Service
- Go to the HBase service.
- Select . This tries to perform an HBase Master-driven graceful shutdown for the length of the configured Graceful Shutdown Timeout (three minutes by default), after which it abruptly shuts down the whole service.
Configuring the Graceful Shutdown Timeout Property
This timeout only affects a graceful shutdown of the entire HBase service, not individual RegionServers. Therefore, if you have a large cluster with many RegionServers, you should strongly consider increasing the timeout from its default of 180 seconds.
- Go to the HBase service.
- Click the Configuration tab.
- Under the Service-Wide category, scroll down to the Graceful Shutdown Timeout property and click on the current Value to change it.
- Click Save Changes to save this setting.
Adding the HBase Thrift Server
- Go to the HBase service.
- Click the Instances tab.
- Click the Add Role Instances button.
- Select the host(s) where you want to add the Thrift Server role (you only need one for Hue) and click Continue. The Thrift Server role should appear in the instances list for the HBase server.
- Select the Thrift Server role instance.
- Select .
Enabling HBase Indexing
HBase indexing is dependent on the Key-Value Store Indexer service. The Key-Value Store Indexer service uses the Lily HBase NRT Indexer to index the stream of records being added to HBase tables. Indexing allows you to query data stored in HBase with the Solr service.
- Go to the HBase service.
- Click the Configuration tab.
- Select the Backup category.
- Check the properties for Enable Replication and Enable Indexing, and click Save Changes.
Configuring Short-Circuit Reads
So-called "short-circuit" reads bypass the DataNode, allowing the client to read the file directly, as long as the client is co-located with the data. Short-circuit reads provide a substantial performance boost to many applications and help improve your HBase random read profile.
- Go to the HDFS service.
- Click the Configuration tab.
- Type "shortcircuit" into the Search field to display the Enable HDFS Short Circuit Read property, and verify that this feature is enabled (set to True).
- Go to the HBase service.
- Click the Configuration tab.
- Search for "shortcircuit".
- Verify that the Enable HDFS Short Circuit Read property is enabled.
Adding a Custom Coprocessor
The HBase coprocessor framework provides a way to extend HBase with custom functionality. The following properties can be configured for HBase custom coprocessors from the Configuration tab for the HBase service:
- Click to configure the hbase.coprocessor.abortonerror property.
- Click to configure the hbase.coprocessor.master.classes property.
- Click to configure the hbase.coprocessor.region.classes property.
The descriptions for each of these properties on the configuration pages provide more information.
<< The Flume Service | The HDFS Service >> | |