# Cassandra Connection

## Cassandra Connection

### Description

Connections can be created and edited using the logo (click on it to edit), and the drop down menu (arrow down) which you can find on the right of every connection line on the various Cassandra action or transform dialogs.

They can also be managed with the metadata perspective in the Hop GUI. Finally, please note that Cassandra Connections are serialized as JSON in the Hop metadata folder under

`metadata/cassandra-connection/`

### The Options

| Option          | Description                                                                                                                                                                                                                                                                         |
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Hostname        | Specify the host name(s) for the connection to the Cassandra server                                                                                                                                                                                                                 |
| Port            | Specify the port number for the connection to the Cassandra server                                                                                                                                                                                                                  |
| Username        | Specify the username of the target keyspace and/or table authentication details                                                                                                                                                                                                     |
| Password        | Specify the password of the target keyspace and/or table authentication details                                                                                                                                                                                                     |
| Socket Timeout  | Set an optional connection timeout period, specified in milliseconds.                                                                                                                                                                                                               |
| Keyspace        | Specify the keyspace (database) name. You can use the `Select Keyspace` button to select a keyspace. You can use the `Execute CQL` button to create one. For example: `CREATE KEYSPACE IF NOT EXISTS hop WITH replication = {'class':'SimpleStrategy', 'replication_factor' : 3} ;` |
| Schema hostname | For writes only: Specify the host name for the connection to the Cassandra schema (leave blank if not different from hostname)                                                                                                                                                      |
| Schema port     | For writes only: Specify the port for the connection to the Cassandra schema (leave blank if not different from port)                                                                                                                                                               |
| Use compression | Select if you want the text of each BATCH INSERT statement compressed (with GZIP) before transmitting it to the node.                                                                                                                                                               |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/index-2/cassandra-connection.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
