CQLSH

Cassandra installs with the Cassandra Query Language Shell (CQLSH) tool. This command-line interface allows you to perform schema changes, user maintenance, and run queries.

CQLSH requires Python 2.7.

To run cqlsh , you can invoke it from the command line. If you have authorization and authentication enabled (and you should), you can start it like this:

cqlsh 192.168.0.100 -u cassandra -p cassandra

You should see output similar to the following, and beat a cqlsh prompt:

Connected to PermanentWaves at 192.168.0.100:9042.[cqlsh 5.0.1 | Cassandra 3.10 | CQL spec 3.4.4 | Native protocol v4]Use HELP for help.cassandra@cqlsh>

The first administrative task that should be completed is to tighten up security. You'll want to create a new administrative ...

Get Seven NoSQL Databases in a Week now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.