Execute queries to a cassandra cluster with cqlsh.
Type:
bash
Name | Required | Description |
CQLSH_KEYSPACE | yes | The keyspace target |
CQLSH_HOST | yes | The host of the Cassandra cluster |
CQLSH_PORT | no | The Vault Token. Defaults to 9043 |
CQLSH_USER | no | The user to connect in the Cassandra cluster. |
CQLSH_PASSWD | no | The password to connect in the Cassandra cluster. |
Create a connection
plain texthoop admin conn create
To add more options to the command line, update the command of the connection.
Then it's possible to run queries into a Cassandra connection
plain texthoop exec my-cqlsh-test -i 'SELECT * FROM table1;'