How to list all the available keyspaces in Cassandra?

Shekhar picture Shekhar · Sep 10, 2013 · Viewed 206.6k times · Source

I am newbie in Cassandra and trying to implement one toy application using Cassandra. I had created one keyspace and few column families in my Cassandra DB but I forgot the name of my cluster.

I am trying to find if there is any query which can list down all the available keyspaces.

Anybody knows such a query or command?

Answer

Marco Ponzi picture Marco Ponzi · Jan 17, 2014

[cqlsh 4.1.0 | Cassandra 2.0.4 | CQL spec 3.1.1 | Thrift protocol 19.39.0]

Currently, the command to use is:

DESCRIBE keyspaces;