All Products
Search
Document Center

ApsaraDB for HBase:Test connectivity

Last Updated:Mar 26, 2024

This topic describes how to test the connectivity of an ApsaraDB for HBase cluster and provides the possible causes of connectivity failures.

Background information

To ensure security, ApsaraDB for HBase does not support the Internet Control Message Protocol (ICMP) for ping operations. Therefore, you cannot ping an ApsaraDB for HBase cluster. Instead, you can use Telnet to test whether an ApsaraDB for HBase cluster is connected. ApsaraDB for HBase allows you to connect to your ApsaraDB for HBase cluster over an intranet or the Internet. To connect to your ApsaraDB for HBase cluster over the Internet, you must first apply for a public endpoint for the cluster.

Procedure

  1. Obtain the ZooKeeper endpoints of your ApsaraDB for HBase cluster.

    1. Log on to the ApsaraDB for HBase console. On the Clusters page, find your ApsaraDB for HBase cluster and click the cluster ID. The details page of the cluster appears.

    2. In the left-side navigation pane, click Database Connection.

    3. On the page that appears, obtain the ZooKeeper endpoints of the cluster.

      Note

      If you use Thrift or other database services to connect to the ApsaraDB for HBase cluster, use the corresponding domain name and port.

      • ApsaraDB for HBase Standard Edition cluster: Obtain the value of ZooKeeper Address in the Connection Information section.

      • ApsaraDB for HBase Performance-enhanced Edition: Obtain the value of Java API Address in the Connection Information section.

  2. Check whether the ApsaraDB for HBase cluster is connected.

    In the following example, the ApsaraDB for HBase cluster is connected.

    [xx@yy-MacBook-Pro ~]$ telnet  hb-xxxxx-001.hbase.rds.aliyuncs.com 2181
    Trying 10.10.10.10...
    Connected to hb-xxxxx-001.hbase.rds.aliyuncs.com.
    Escape character is '^]'.

    In the following example, the ApsaraDB for HBase cluster is not connected.

    [xx@yy-MacBook-Pro ~]$ telnet  hb-xxxxx-001.hbase.rds.aliyuncs.com 2181
    Trying 10.10.10.10...
    telnet: connect to address 10.10.10.10: Operation timed out
    telnet: Unable to connect to remote host

Possible causes of connectivity failures

  • You have not configured a whitelist to allow access to your ApsaraDB for HBase cluster. For more information, see Configure a whitelist and a security group.

  • ApsaraDB for HBase is not allowed to access your on-premises network. For example, if you use an Elastic Compute Service (ECS) instance to test the connectivity of the cluster, you must allow ApsaraDB for HBase to access the ECS instance.

  • If the on-premises network is of the Classic Network type, you cannot access an ApsaraDB for HBase cluster over a virtual private cloud (VPC).

  • If your ApsaraDB for HBase cluster and client are deployed in the same VPC but are connected to different vSwitches, you must configure routing rules.

  • By default, two different VPCs are not connected. You can use Express Connect to enable communication across VPCs.

  • You are connecting to an ApsaraDB for HBase cluster from a network outside Alibaba Cloud, such as the private network of your company.

    1. Apply for a public endpoint for the ApsaraDB for HBase cluster.

    2. Use a leased line to connect to an Alibaba Cloud data center.

  • If you use an ECS instance to connect to an ApsaraDB for HBase cluster over the Internet, you must allow Internet access to the ECS instance. If the ECS instance does not allow Internet access, the ECS instance cannot be connected to the ApsaraDB for HBase cluster.

If the connectivity failure persists after the troubleshooting, contact the ApsaraDB for HBase expert team on DingTalk (DingTalk ID: s0s3eg3).