All Products
Search
Document Center

ApsaraDB for HBase:Use HBase Shell to access an ApsaraDB for HBase Standard Edition cluster

Last Updated:Jan 29, 2024

This topic describes how to use HBase Shell to access an ApsaraDB for HBase Standard Edition cluster.

Precautions

HBase Shell does not support Java 11. We recommend that you use Java 8 for HBase Shell.

Procedure

  1. Purchase an Elastic Compute Service (ECS) instance.

    ApsaraDB for HBase clusters can be accessed over an internal network. If you need to access an ApsaraDB for HBase cluster over an internal network, you must have an ECS instance in the region where the ApsaraDB for HBase cluster is deployed.

    1. If you already have an ECS instance that meets the requirement, go to Step 2.

    2. If no ECS instance is available, you can purchase a pay-as-you-go ECS instance and use it to test the ApsaraDB for HBase cluster.

  2. Download the HBase Shell package.

    Log on to the ApsaraDB for HBase console, find the ApsaraDB for HBase cluster that you want to access, and then click the cluster ID. In the left-side navigation pane of the page that appears, click Database Connection. On the page that appears, click HBase Shell download in the Connection Information section to download the HBase Shell package.

  3. Run the following command to decompress the downloaded package:

     tar -zxf xxx.tar.gz
  4. Configure the ZooKeeper addresses of the cluster. In the conf/hbase-site.xml file, add the following configuration:

    <configuration>
         <property>
             <name>hbase.zookeeper.quorum</name>
             <value>$ZK_IP1,$ZK_IP2,$ZK_IP3</value>
         </property>
    </configuration>
  5. Access the ApsaraDB for HBase cluster.

    Run the following command to access the ApsaraDB for HBase cluster:

     bin/hbase shell