Apache Cassandra™ 1.2

Using CLI

The legacy Cassandra CLI client utility can be used to do limited Thrift data definition (DDL) and data manipulation (DML) within a Cassandra cluster. CQL 3 is the recommended API for Cassandra. You can access CQL 3 tables using CLI. The CLI utility is located in /usr/bin/cassandra-cli in packaged installations or <install_location>/bin/cassandra-cli in binary installations.

A command must be terminated by a semicolon (;). Using the return key without a semicolon at the end of the line echoes an ellipsis ( . . .), which indicates that the CLI expects more input.

Show/hide