Connect with cqlsh

Open CQL interactive shell

cqlsh <host> 9042 -u cassandra -p cassandra

tool
cassandra15 commands
tags
cassandra

More cassandra commands

  • cqlsh -e 'DESCRIBE KEYSPACES'

    Show all keyspaces in the cluster

  • nodetool repair -pr <keyspace>

    Run incremental repair on the primary range (use in maintenance)

  • nodetool compactionstats

    Show ongoing compaction operations and queue length

  • nodetool flush <keyspace> <table>

    Force memtable flush to SSTables

  • cqlsh -e 'DESCRIBE TABLE <keyspace>.<table>'

    Show CREATE TABLE statement with all settings

all 15 cassandra commands