Run CQL with cqlsh

Run a CQL statement without opening the interactive shell

cqlsh -u cassandra -p cassandra -e 'DESCRIBE KEYSPACES;'

tool
cassandra15 commands
tags
cassandra

More cassandra commands

  • nodetool tablestats mykeyspace.mytable

    Show read and write latency and the SSTable count for a table

  • nodetool repair -full mykeyspace

    Run a full repair to sync all replicas of a keyspace

  • nodetool gossipinfo

    Show the gossip state of all nodes (for debugging)

  • nodetool flush mykeyspace

    Force in-memory data to be written to SSTables

  • nodetool status

    Show ring topology, load, state, and host IDs

all 15 cassandra commands