Apache Cassandra™ 1.2

Starting CLI on a single node

To start the CLI and connect to a particular Cassandra instance, launch the script together with -host and -port options. Cassandra connects to the cluster named in the cassandra.yaml file. Test Cluster is the default cluster name.

Procedure

Start CLI and connect to a single-node cluster on localhost.
$ cassandra-cli -host localhost -port 9160
Show/hide