Skip to content
cheatsheet
home
/
cv
/
weblog
/
cheatsheet
/
proxy
/
vpn
/
status
/
links
EN
RU
☾
New version available
reload
×
cheatsheet
/
cassandra
/
Connect with cqlsh
Connect with cqlsh
cassandra
Open CQL interactive shell
cqlsh <host> 9042 -u cassandra -p cassandra
⎘ copy
#cassandra
more cassandra
all 15 commands →
List keyspaces
cqlsh -e 'DESCRIBE KEYSPACES'
Repair keyspace
nodetool repair -pr <keyspace>
Compaction stats
nodetool compactionstats
Flush table to disk
nodetool flush <keyspace> <table>
Describe table
cqlsh -e 'DESCRIBE TABLE <keyspace>.<table>'