Run CQL from cqlsh
Execute a CQL statement non-interactively
cqlsh -u cassandra -p cassandra -e 'DESCRIBE KEYSPACES;'
More cassandra commands
-
nodetool tablestats mykeyspace.mytableShow read/write latencies and SSTable count for a table
-
nodetool repair -full mykeyspaceFull repair to sync all replicas for a keyspace
-
nodetool gossipinfoShow gossip state for all nodes (debug)
-
nodetool flush mykeyspaceForce flush in-memory data to SSTables
-
nodetool statusShow ring topology, load, state, and host IDs