This topic describes how to use HBase Shell to access an ApsaraDB for HBase Standard Edition cluster.
- 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. If you already have an ECS instance that meets the requirement, go to the next step. 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.
- Download HBase Shell.
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.
Run the following command to decompress the downloaded package:
tar -zxf xxx.tar.gz
- 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>
- Access the cluster.
Run the following command to access the cluster: