Preparing an ECS
If the client tool runs on Linux, you need to prepare a Linux ECS that is in the VPC as a CloudTable cluster and the Linux ECS serves as a client host. For example, if you use the following client tools to access a cluster, you are advised to use a Linux ECS.
- HBase shell
- GeoMesa command line tool
If the client tool runs on Windows, you need to prepare a Windows ECS that is in the VPC as a CloudTable cluster and the Windows ECS serves as a client host. Alternatively, you can refer to Preparing a Local Windows Environment (VPN Connection Mode) to prepare the client host. For example, if you use the following client tools to access a cluster, you are advised to use a Windows ECS.
- HBase web UI
You can select an ECS of different images and functions to meet your needs.
Preparing an ECS
For details about how to purchase a Linux or Windows ECS, see Quickly Purchasing an ECS in the Elastic Cloud Server User Guide.
The purchased ECS must meet the following requirements:
- The ECS must have the same region, AZ, VPC, and subnet as the CloudTable cluster.
For details about how to create a VPC, see Creating a VPC in the Virtual Private Cloud User Guide.
- The ECS must have the same security group as the CloudTable cluster.
For more information about security groups, see Security Group Overview in the Virtual Private Cloud User Guide.
Check whether the outbound rule of the security group contains the following rule:
- Protocol & Port: All
- Type: IPv4
- Destination: 0.0.0.0/0
If the preceding rules do not exist, add the following outbound rule according to Figure 1.- Protocol: TCP
- Port: 80
- Destination: Select IP address and set it to 0.0.0.0/0.
- When purchasing an ECS, you need to set EIP to Automatically assign. Alternatively, you can bind an EIP to an ECS after the ECS is created.
- To access a Linux ECS, you need to log in to a Linux ECS using a password (SSH).
For details about how to log in to the ECS, see Login Using an SSH Password in the Elastic Cloud Server User Guide.
- Accessing a Windows ECS
For details about how to log in to the ECS, see Login Using an MSTSC Password in the Elastic Cloud Server User Guide.
Configuring the DNS Address and hosts File for the Linux ECS
You do not need to perform this operation when you install the HBase shell by deploying a client in one click. In other cases, perform the following steps to configure the DNS address and the hosts file for the Linux ECS:
- Configure /etc/hosts.
Configure the host IP address in the /etc/hosts file to accelerate the access to the CloudTable cluster.
To configure /etc/hosts for a Linux ECS, perform the following steps:
- Log in to the Linux ECS as user root.
- Run the hostname command to query the host name.
[root@euler ~]# hostname euler.novalocal
- Run the ifconfig command to query the IP address of the local host. Figure 2 Querying the IP address
- Run the vi /etc/hosts command to edit the file and add the host configuration.
192.168.0.58 euler.novalocal 127.0.0.1 euler.novalocal
- Press Esc and enter :wq to save the settings and exit.
- Run the following command to check whether the IP address is successfully added:
cat /etc/hosts
- Run the following command to check whether the host name can be resolved:
ping Host name
- Configure the DNS.
The DNS server is used to resolve the domain name in the CloudTable cluster link, for example, the ZooKeeper link. The IP addresses of the DNS server vary based on different regions.
- CN North-Beijing1: 100.125.1.250
- CN East-Shanghai2: 100.125.135.29,100.125.17.29
- CN South-Guangzhou: 100.125.1.250,100.125.21.250
To configure DNS for a Linux ECS, perform the following steps:
- Log in to the Linux ECS as user root.
- Run the vi /etc/resolv.conf command to edit the /etc/resolv.conf file and add the nameserver configuration. Above the Internet IP address, add two lines to input the DNS server IP addresses in the following format.
nameserver 100.125.1.250
- Press Esc and enter :wq to save the settings and exit.
- Run the following command to check whether the IP address is successfully added:
cat /etc/resolv.conf
- Run the following command to check whether an IP address can be resolved from the access domain name.
ping Access domain name
Access domain name indicates the domain name in the CloudTable cluster link, for example, the ZooKeeper link. On the CloudTable management console, click the cluster name to go to the basic cluster information page and obtain the link of CloudTable.
Configuring DNS Address for a Windows ECS
- Log in to the Windows ECS as user Administrator.
- On the Windows ECS, choose Start > Control Panel > Network and Internet > Network and Sharing Center.
- In the Network and Sharing Center window, click Change adapter settings on the right.
- Right-click the network adapter name and choose Properties from the shortcut menu. The Properties dialog box is displayed.
- Click Internet Protocol Version 4 (TCP/IPv4). The Internet Protocol Version 4 (TCP/IPv4) Properties dialog box is displayed.
- In the dialog box shown in Figure 3, select Use the following DNS server addresses, enter the IP address of the DNS server in the Preferred DNS server textbox, and click OK.
The DNS server is used to resolve the domain name in the CloudTable cluster link, for example, the ZooKeeper link. The IP addresses of the DNS server vary based on different regions.
- CN North-Beijing1: 100.125.1.250
- CN East-Shanghai2: 100.125.135.29,100.125.17.29
- CN South-Guangzhou: 100.125.1.250,100.125.21.250
- Click Start, enter cmd in the search box, and press Enter. The CLI is displayed.
- Run the following command on the CLI to check whether the DNS is successfully configured:
ping Access domain name
Access domain name indicates the domain name in the CloudTable cluster link, for example, the ZooKeeper link. On the CloudTable management console, click the cluster name to go to the basic cluster information page and obtain the link of CloudTable.
Last Article: Preparing a Client Operating Environment
Next Article: Preparing a Local Windows Environment (VPN Connection Mode)


Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.