Using cassandra-cli

To explore the Thrift API, we'll use a new tool called cassandra-cli. Like cqlsh, cassandra-cli is a command-line interface to Cassandra, but it does not provide a CQL interface. Instead, cassandra-cli uses a small, purpose-built query language that allows us to interact directly with column families. Some cassandra-cli commands resemble their CQL equivalents, but it's merely a resemblance, not a relationship.

In recent versions of Cassandra, cassandra-cli is deprecated and will be removed from Cassandra 3.0. This should serve to underscore the fact that CQL is considered the way to interact with Cassandra: the Thrift interface is merely a curiosity, not a viable tool to interact with Cassandra in our applications.

Your ...

Get Learning Apache Cassandra - Second 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.