Skip to Content
Mastering Apache Cassandra 3.x - Third Edition
book

Mastering Apache Cassandra 3.x - Third Edition

by Aaron Ploetz, Tejaswi Malepati
October 2018
Beginner to intermediate content levelBeginner to intermediate
348 pages
10h
English
Packt Publishing
Content preview from Mastering Apache Cassandra 3.x - Third Edition

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Apache Cassandra - Second Edition

Mastering Apache Cassandra - Second Edition

Nishant Neeraj

Publisher Resources

ISBN: 9781789131499Supplemental Content