All Products
Search
Document Center

Use HBase Shell to access ApsaraDB for HBase

Last Updated: May 31, 2020

Use HBase Shell to access ApsaraDB for HBase

  1. Create an ECS instance.

    ApsaraDB for HBase Standard Edition only supports the access over a internal network. To access ApsaraDB for HBase, you must create an ECS instance in the region where ApsaraDB for HBase is deployed. If the ECS instance has been created, go to the next step. If the ECS instance has not been created, you can purchase a pay-by-data-transfer ECS instance.

    For more information, see Preparation.

  2. Download HBase Shell.

    Log on to the HBase console, choose Database Connection > Connection Information, and then click HBase Shell Download to download HBase Shell.

    Run the following command to decompress the file.

    1. tar -zxf xxx.tar.gz

    Note: For more information about how to use HBase Shell to access ApsaraDB for HBase Performance-enhanced Edition, see Use HBase Shell to access ApsaraDB for HBase.

  3. Configure the ZK addressAfter you decompress the file, run the following command to add the ZK address of the cluster to the conf/hbase-site.xml file:

    1. <configuration>
    2. <property>
    3. <name>hbase.zookeeper.quorum</name>
    4. <value>$ZK_IP1,$ZK_IP2,$ZK_IP3</value>
    5. </property>
    6. </configuration>

    For more information about the $ZK_IP1, $ZK_IP2, and $ZK_IP3 values, see Retrieve the ZK address of the cluster.

  4. Access the cluster

    You can run the following command to access the cluster.

    1. bin/hbase shell

For more information, see Apache HBase official website.