If you want to use a graphical interface to create or query HBase tables in a cluster, you can use Hue. This topic describes how to create and delete HBase tables on the Hue web UI. In this topic, an E-MapReduce (EMR) V4.9.0 cluster is used.

Prerequisites

  • An EMR cluster is created, and HBase is selected from the optional services when you create the cluster. For more information, see Create a cluster.
  • Port 8888 is enabled. For more information, see Access the web UIs of open source components.
    Notice When you configure the authorization object in a security group rule, enter only the CIDR blocks or IP addresses that need to access Hue. Do not enter the CIDR block 0.0.0.0/0.

Limits

The HBase service must be deployed in your cluster.

Considerations

For a Hadoop cluster of EMR V3.35.0 or a later minor version, or EMR V4.9.0 or a later minor version, you must delete hbase from the value of the app_blacklist parameter on the Configure tab of the Hue service page.

Go to the HBase Browser page

  1. Go to the Cluster Overview page of your cluster.
    1. Log on to the Alibaba Cloud EMR console by using your Alibaba Cloud account.
    2. In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
    3. Click the Cluster Management tab.
    4. On the Cluster Management page, find your cluster and click Details in the Actions column.
  2. Modify the app_blacklist parameter.
    1. In the left-side navigation pane, choose Cluster Service > Hue.
    2. In the Configuration Filter section, search for the app_blacklist parameter.
    3. Delete hbase from the value of the app_blacklist parameter.
      hue_hbase
    4. In the upper-right corner of the Service Configuration section, click Save.
    5. In the Confirm Changes dialog box, specify Description and click OK.
  3. Restart Hue.
    1. In the upper-right corner of the Hue service page, choose Actions > Restart Hue.
    2. In the Cluster Activities dialog box, specify Description and click OK.
    3. In the Confirm message, click OK.
  4. In the left-side navigation pane, click Connect Strings.
  5. On the Public Connect Strings page, click the URL of Hue.
    On the page that appears, enter your Hue username and password to access the Hue web UI.
    Note The first time you log on to the Hue web UI, you must obtain the initial password of the admin account, which is the default administrator. For more information about how to obtain the initial password, see View the initial password.
  6. In the left-side navigation pane, click the hue_hbase icon.
    The HBase Browser page appears. Hbase_Browser

Create an HBase table

  1. On the HBase Browser page, click New Table in the upper-right corner.
  2. In the Create New Table dialog box, configure parameters.
    Parameter Description
    Table Name The name of the table that you want to create.
    Column Families The column families of the table.
  3. Click Submit.

Delete HBase tables

  1. On the HBase Browser page, select one or more tables.
  2. Click Drop.
  3. In the Confirm Delete message, click Confirm.