Local cluster without security enabled

This is the easiest scenario. It's also the least secure, so you shouldn't get into the habit of setting things up this way (which is what too much of running on your own machine can do):

bin/cqlsh

This is the only scenario where executing cqlsh without any parameters may work, and only if you have not configured your local Cassandra node to bind to anything but the home IP address of 127.0.0.1. cqlsh also uses 127.0.0.1 by default, so this will not work in a remote or multiple-node scenario.

cqlsh connects via the native binary protocol and uses port 9042 by default. With Cassandra versions 2.0 and earlier, cqlsh connects via Thrift and uses port 9160. In both cases, you should not have to specify the ...

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.