If you have not already installed the HBase package on the cluster, do so now. Follow the instructions in Installing HBase on a Client.
The instructions are intended for (and only work on) HBase package 0.94.17 and later.
- Install the HBase thrift server role package,
mapr-hbasethrift. See Installing the HBase Thrift Server.
- Start the HBase thrift server. See Starting the HBase Thrift Server.
- Verify the server status. See Verifying Server Status.
- For MapR-DB tables, set up MapR table mapping. See Setting up MapR-DB Table Mapping.
- Edit the
hue.inifile. See Configuring Hue for HBase.
Installing the HBase Thrift Server
To simplify the installation process, install the HBase thrift server on the same node where HBase is running.
mapr-hbasethriftpackage on Ubuntu, see Installing the HBase Thrift Server on Ubuntu. To install the
mapr-hbasethriftpackage on RedHat or CentOS, see Installing the HBase Thrift Server on RHEL/CentOS.
Installing the HBase Thrift Server on Ubuntu
mapr-hbasethrift on Ubuntu, enter:
Installing the HBase Thrift Server on RHEL/CentOS
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:
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.
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
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:
## hbase_clusters=(Cluster|localhost:9090)statement and provide the list of HBase thrift servers.
- (Optional) Uncomment the
truncate_limitstatement and change the value if necessary.