Logging into cqlsh

You will find cqlsh in the /bin directory of your Cassandra home directory. You can start it by invoking it with a host IP address to connect to and any flags required by your cluster or session to connect:

cqlsh <host_ip> <port> [flags/options]

In the interest of getting users on the correct path, we'll show you how to log into a cluster secured with both auth and ssl via cqlsh:

bin/cqlsh 192.168.0.101 -u cassdba -p flynnLives --sslConnected to PermanentWaves at 192.168.0.101:9042.[cqlsh 5.0.1 | Cassandra 3.11.2 | CQL spec 3.4.4 | Native protocol v4]Use HELP for help.cassdba@cqlsh>
The --ssl flag is not required if your cluster does not use client-to-node SSL. Also, versions of Apache Cassandra earlier than 2.1 did not ...

Get Mastering Apache Cassandra 3.x - Third Edition 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.