Describe a table

Show the CREATE TABLE statement with all settings

cqlsh -e 'DESCRIBE TABLE <keyspace>.<table>'

tool
cassandra15 commands
tags
cassandra

More cassandra commands

  • nodetool status

    Show the ring: node state, load and host IDs

  • nodetool compactionstats

    Show running compactions and the queue length

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

    Run a CQL statement without opening the interactive shell

  • 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

all 15 cassandra commands