cassandra

15 commands

15 shown

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