How to list column families in keyspace?

newbie picture newbie · Mar 29, 2014 · Viewed 34.4k times · Source

How can I get list of all column families in keyspace in Cassandra using CQL 3?

Answer

Aaron picture Aaron · Mar 31, 2014

Or even more simply (if you are using cqlsh), switch over to your keyspace with use and then execute describe tables:

cqlsh> use products;
cqlsh:products> describe tables;

itemmaster    itemhierarchy         companyitemfavorites
testtable

Note: The describe command is specific to cqlsh only.