cassandra
15 commands
15 shown
Nodetool status
Show ring topology, load, state, and host IDs
nodetool status
Nodetool info
Local node heap, uptime, gossip, data center info
nodetool info
Connect with cqlsh
Open CQL interactive shell
cqlsh <host> 9042 -u cassandra -p cassandra
List keyspaces
Show all keyspaces in the cluster
cqlsh -e 'DESCRIBE KEYSPACES'
Repair keyspace
Run incremental repair on the primary range (use in maintenance)
nodetool repair -pr <keyspace>
Compaction stats
Show ongoing compaction operations and queue length
nodetool compactionstats
Flush table to disk
Force memtable flush to SSTables
nodetool flush <keyspace> <table>
Describe table
Show CREATE TABLE statement with all settings
cqlsh -e 'DESCRIBE TABLE <keyspace>.<table>'
Check node status
Show cluster ring with status, load and ownership
nodetool status
Check compaction stats
Show pending and active compaction tasks
nodetool compactionstats
Run CQL from cqlsh
Execute a CQL statement non-interactively
cqlsh -u cassandra -p cassandra -e 'DESCRIBE KEYSPACES;'
Check table stats
Show read/write latencies and SSTable count for a table
nodetool tablestats mykeyspace.mytable
Repair a keyspace
Full repair to sync all replicas for a keyspace
nodetool repair -full mykeyspace
Get gossip info
Show gossip state for all nodes (debug)
nodetool gossipinfo
Flush memtables to disk
Force flush in-memory data to SSTables
nodetool flush mykeyspace
no commands match