- <DB_HOST> indicates the private IP address of the node to be connected. Obtain the value from the Private IP Address column in the node list on the Basic Information page.
- <DB_PORT> indicates the port number. The default value is 8635 and cannot be changed.
- <DB_USER> indicates the database account name. The default value is rwuser.
diff --git a/docs/geminidb/umn/nosql_02_0009.html b/docs/geminidb/umn/nosql_02_0009.html
index cea91c30..b045f6d5 100644
--- a/docs/geminidb/umn/nosql_02_0009.html
+++ b/docs/geminidb/umn/nosql_02_0009.html
@@ -4,9 +4,12 @@
Scenarios
You can use an ECS or local device to connect to a GeminiDB instance over a public network.
This section describes how to use a Linux ECS to connect to a GeminiDB Cassandra instance over a public network.
-
Prerequisites
- Bind an EIP to the GeminiDB Cassandra instance node and set security group rules.
- Create an ECS running Linux. For details, see "Creating ECSs" in ECS User Guide.
- Obtain the Cassandra client installation package from the Cassandra official website.
- Before using this tool, install the Python dependency package cassandra-driver 3.11.0 or later.
+
-
Connecting to a DB Instance Through a Cassandra Client
- Log in to the ECS. For details, see the section "Logging In to an ECS" in the Elastic Cloud Server User Guide.
- Upload the Cassandra client installation package to ECS.
- Obtain the client tool cqlsh.
- Connect to the DB instance in the directory where the cqlsh tool is located.
./cqlsh <DB_HOST> <DB_PORT> -u <DB_USER>
+Connecting to a DB Instance Through a Cassandra Client
- Log in to the ECS. For details, see the section "Logging In to an ECS" in the Elastic Cloud Server User Guide.
- Upload the Cassandra client installation package 3.11.3 to the ECS. If Wget fails to be downloaded, download it to your local PC and then upload it to the ECS.
wget https://archive.apache.org/dist/cassandra/3.11.3/apache-cassandra-3.11.3-bin.tar.gz
+tar -zxvf apache-cassandra-3.11.3-bin.tar.gz
+ - Obtain the client tool cqlsh.
cd apache-cassandra-3.11.3/bin
+ - Connect to the DB instance in the directory where the cqlsh tool is located.
./cqlsh <DB_HOST> <DB_PORT> -u <DB_USER>
Example:
./cqlsh 192.168.1.8 8635 -u rwuser
- <DB_HOST> indicates the EIP of the node to be connected. Obtain the value from the EIP column in the node list on the Basic Information page.
- <DB_PORT> indicates the port number. The default value is 8635 and cannot be changed.
- <DB_USER> indicates the database account name. The default value is rwuser.