Currently, HBase supports both internal access and Internet access. Internal network access is more stable and typically used in production. Internet access has a higher latency and is more suitable for development and testing purposes. For more information about how to access over the Internet, see Solutions for accessing ApsaraDB for HBase over a public network.

Step 1: Prepare an Elastic Compute Service (ECS) instance

Classic network

In the classic network, you can purchase an ECS instance in any zone of the region where ApsaraDB for HBase is deployed, and set a whitelist to connect to ApsaraDB for HBase.

For example, if ApsaraDB for HBase is deployed in Zone B of the China (Hangzhou) region, you can create an ECS instance in one of the following zones of the same region: Zone B, Zone C, Zone D, and Zone E.

Virtual Private Cloud (VPC)

In a VPC network, you can create an ECS instance in any zone if the ECS instance and ApsaraDB for HBase are in the same VPC. You can connect the ECS instance and ApsaraDB for HBase to the same VPC network by creating VSwitches in different zones.

  1. First, create a VPC network in this region in the VPC console.

    For example, if you are in Hangzhou, create a VPC named myvpc in the China (Hangzhou) region.

  2. In this VPC network, create a VSwitch in the zone where ApsaraDB for HBase is deployed.

    For example, if the HBase is deployed in China (Hangzhou) Zone E, we can create a VSwitch named switch-zone-e in Zone E of the same VPC network, and then specify a CIDR block as needed.

  3. Set VPC to myvpc and switch-zone-e on the buy page of ApsaraDB for HBase.

  4. Create a VSwitch that is used by the ECS instance.

    a. If you can purchase an ECS instance in the same zone where ApsaraDB for HBase is deployed such as Zone E, go to Step 5.

    b. If you cannot purchase an ECS instance in the same zone where ApsaraDB for HBase is deployed, check the available zones for the ECS instance, for example, Zone B. Create the corresponding VSwitch switch-zone-b in myvpc.

  5. Create an ECS instance.

    a. If you select the same zone where ApsaraDB for HBase is deployed such as Zone E, you can purchase an ECS instance directly. Select the same VPC and VSwitch as ApsaraDB for HBase.

    b. If the ECS instances is not in the same zone, follow the previous step to select the zone. For example, create an ECS instance in Zone B and select the VPC myvpc and switch-zone-b that are previously created.

Step 2: Enable the whitelist

After creating the ECS instance, you need to add the internal IP address of the ECS instance to the whitelist in ApsaraDB for HBase. For more information, see Configure a whitelist.

Connectivity test

For more information, see Connectivity test.