Using the GeoMesa Command Line Tools
You can use the GeoMesa shell or HBase shell to access a cluster by deploying a client in one click on an ECS.
Deploying a Client in One Click
- Prepare a Linux ECS.
Using a one-click client deployment tool. The recommended Linux ECS operating systems are EulerOS, CentOS, Ubuntu, and SUSE. For details, see Preparing an ECS.
- Download the one-click client deployment tool.
Run the following command to obtain the one-click client deployment tool:
curl -O -k "http://cloudtable-publish.obs.myhwclouds.com/quick_start_hbase_shell.sh"
- Obtain a cluster access address.
Log in to the CloudTable management console and choose Cluster Mode. In the cluster list, locate the required cluster and obtain its ZK link in the ZK Link column. The parameter value is the cluster access address, as shown in Figure 1.
- Use the tool to deploy the client.
- Clusters with IAM authentication disabled Replace $zookeeper_address in the following command with the ZK link you obtained in 3. Then, run the command on the CLI of the ECS to deploy the client in one click.
source quick_start_hbase_shell.sh $zookeeper_address
- Clusters with IAM authentication enabled
Specify account information for IAM authentication in the following command, and then run this command to deploy the client in one click.
source quick_start_hbase_shell.sh $zookeeper_address $user_name $access_key $secret_key
- $zookeeper_address: Replace it with the ZK link obtained in 3.
- $user_name: Username used for creating a cluster. If the cluster is created using an account, set $user_name to an account name. If the cluster is created using an IAM user under an account, set $user_name to the IAM username.account name. An account and an IAM user are in a parent-child relationship.
For a cluster with IAM authentication enabled, $user_name must be set to the username used for creating the cluster and cannot be updated after the cluster is created. To update the username, submit a work order to the O&M personnel.
- $access_key and $secret_key: Access keys. Set $access_key to the AK plaintext and $secret_key to the SK plaintext. You can move your cursor over your account in the upper right corner of the management console and choose My Credential. Click Access Keys tab. On the Access Keys tab page, you can view the existing access keys or click Add Access Key to add an access key.
The IAM authentication mode provides better security than the normal mode. Therefore, you are advised to enable IAM authentication for the CloudTable cluster and use IAM authentication in client or application code to connect to the cluster.
- Clusters with IAM authentication disabled
- Go to the directory where the GeoMesa client is installed.
After you run the source command to automatically deploy the client, the HBase shell is automatically started. Run the following command to exit the HBase shell client:
exit
Go to the directory where the GeoMesa client is installed.
cd geomesa-hbase_2.11-1.3.4
Last Article: Using GeoMesa
Next Article: GeoMesa Command Line

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