Connect with cqlsh
Open CQL interactive shell
cqlsh <host> 9042 -u cassandra -p 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 compactionstatsShow 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