Before connecting to ApsaraDB for HBase Standard Edition, set up your network environment, configure a whitelist, and verify connectivity.
Choose an access mode
ApsaraDB for HBase Standard Edition supports two access modes:
| Access mode | Latency | Recommended for |
|---|---|---|
| Internal access | Low, stable | Production |
| Internet access | Relatively high | Development and testing |
Use internal access for production workloads. Internet access is available when you need to connect from outside the Alibaba Cloud network during development or testing.
Set up your network
Choose the network type that matches how your ApsaraDB for HBase Standard Edition instance is deployed.
Classic network
In a classic network, create an ECS instance in any zone within the same region as your ApsaraDB for HBase Standard Edition instance.
Example: If ApsaraDB for HBase Standard Edition is deployed in Zone B of the China (Hangzhou) region, create an ECS instance in Zone B, Zone C, Zone D, or Zone E of the same region.
After creating the ECS instance, add its internal IP address to the whitelist. See Configure a whitelist.
Virtual private cloud (VPC)
In a VPC, the ECS instance and ApsaraDB for HBase Standard Edition instance must be in the same VPC. They can be in different zones within the same VPC by using vSwitches.
Create a VPC in the target region using the VPC console. Example: Create a VPC named
myvpcin the China (Hangzhou) region.In the VPC, create a vSwitch in the zone where ApsaraDB for HBase Standard Edition will be deployed. Example: If ApsaraDB for HBase Standard Edition will be deployed in Zone E, create a vSwitch named
switch-zone-ein Zone E ofmyvpc, and specify a CIDR block.On the ApsaraDB for HBase Standard Edition buy page, set VPC to
myvpcand vSwitch toswitch-zone-e.Create a vSwitch for the ECS instance.
If you can create the ECS instance in the same zone as ApsaraDB for HBase Standard Edition (Zone E), skip this step and go to step 5.
If Zone E is not available for ECS, check which zones support ECS (for example, Zone B) and create a vSwitch named
switch-zone-binmyvpc.
Create an ECS instance.
If Zone E is available for ECS, create the instance in Zone E and set VPC and vSwitch to
myvpcandswitch-zone-e.If Zone E is not available, create the instance in the zone from step 4 (for example, Zone B) and set VPC and vSwitch to
myvpcandswitch-zone-b.
Configure a whitelist
After the ECS instance is running, add its internal IP address to the whitelist in ApsaraDB for HBase Standard Edition.
For the full configuration steps, see Configure a whitelist.
Verify connectivity
Run a connectivity test to confirm that your ECS instance can reach ApsaraDB for HBase Standard Edition before deploying your application.
For the test procedure, see Connectivity test.