This is documentation for MapR Version 5.0. You can also refer to MapR documentation for the latest release.

Skip to end of metadata
Go to start of metadata
You can use the Hue HBase application to access both HBase and MapR-DB tables. In order to use the Hue HBase application, you need to complete these steps:

Installing the HBase Thrift Server

 

Icon

To simplify the installation process, install the HBase thrift server on the same node where HBase is running.

 

To install the mapr-hbasethrift package on Ubuntu, see Installing the HBase Thrift Server on Ubuntu. To install the mapr-hbasethrift package on RedHat or CentOS, see Installing the HBase Thrift Server on RHEL/CentOS.

Installing the HBase Thrift Server on Ubuntu

To install mapr-hbasethrift on Ubuntu, enter:

 

Installing the HBase Thrift Server on RHEL/CentOS

To install mapr-hbasethrift on RHEL/CentOS, enter: 

 

 

Starting the HBase Thrift Server

The HBase thrift service is managed by Warden. When mapr-hbasethrift is installed, the warden.hbasethrift.conf file is placed in the directory /opt/mapr/conf/conf.d. If warden is running, it will detect the file and start the service. If warden is not running, the file is picked up when warden starts. Warden monitors the service and displays the status on the MapR Control System UI.

To start the HBase thrift server, enter the following command with the name of the host where hbasethrift is running:

 

Verifying Server Status

To verify the status of the server, enter:

 

 

The output from this command should look similar to this:

 

Setting up MapR-DB Table Mapping

To use the Hue HBase application to access MapR-DB tables, you need to set the hbase.table.namespace.mappings property. This property allows you to map Apache HBase table names to MapR-DB tables. Set this property in the core-site.xml file as shown in Mapping Table Namespace Between Apache HBase Tables and MapR Tables.

Icon

This step is not required when you run Hue 3.7 with MapR 4.0.1 or above and HBase 0.98.7 or above.

In the following example, the hbase.table.namespace.mappings property is set so that any flat table name, such as mytable, is treated as a MapR-DB table in the directory /tables_dir/mytable.

Once you finish enabling table mapping in the core-site.xml file, start (or restart) the HBase thrift server so the changes will take effect.

Configuring Hue for HBase

To configure Hue for HBase, edit the hbase section of the hue.ini file, which looks like this:

 

In this file, make the following changes:

  1. Uncomment the ## hbase_clusters=(Cluster|localhost:9090) statement and provide the list of HBase thrift servers.

  2. (Optional) Uncomment the truncate_limit statement and change the value if necessary.

 

 

 

 

  • No labels