Connecting to a GaussDB(for Cassandra) Instance Over Private Networks

Scenarios

This section uses the Linux operating system as an example to describe how to connect an ECS to a GaussDB(for Cassandra) instance over private networks.

Constraints

Prerequisites

Using the Cassandra Client Tool to Connect to a DB Instance

  1. Log in to the ECS. For details, see the section "Logging In to an ECS" in the Elastic Cloud Server User Guide.
  2. Upload the Cassandra client installation package to ECS.
  3. Obtain the client tool cqlsh.
  4. 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 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.

  5. Check the connection result. If the following information is displayed, the connection is successful.

    rwuser@cqlsh>

Follow-up Operations

After logging in to the GaussDB(for Cassandra) instance, you can perform the following operations: