Is there a clear equivalent of 'show keyspaces' in cqlsh 2?

Crowie picture Crowie · May 17, 2013 · Viewed 42k times · Source

What cqlsh command can I use to quickly see the keyspaces in a cluster? cqlsh does not provide show keyspaces and describe cluster isn't as concise as I want.


I'm working using the following specifications:

cqlsh 2.2.0, Cassandra 1.1.10, CQL spec 2.0.0, Thrift protocol 19.33.0

Answer

abhi picture abhi · May 17, 2013

Very simple. Just enter this command in your cqlsh shell and enjoy

 select * from system.schema_keyspaces;

In C*3.x, we can simply use

 describe keyspaces