If you have not already installed the HBase package on the cluster, do so now. Follow the instructions in Installing HBase on a Client.
- 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
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.
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.