Use HBase Shell to access ApsaraDB for HBase
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.
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.
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.
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:
<configuration>
<property>
<name>hbase.zookeeper.quorum</name>
<value>$ZK_IP1,$ZK_IP2,$ZK_IP3</value>
</property>
</configuration>
For more information about the $ZK_IP1, $ZK_IP2, and $ZK_IP3 values, see Retrieve the ZK address of the cluster.
Access the cluster
You can run the following command to access the cluster.
bin/hbase shell
Related resources
For more information, see Apache HBase official website.