How to know the size of a keyspace and column family in Cassandra?

前端 未结 4 1343
情话喂你
情话喂你 2021-02-05 10:21

Recently I\'ve started working on Grails integration with Cassandra using the Java driver for cassandra(cassandra-driver-core-2.0.2). So I was curious to know how we can find ou

4条回答
  •  清酒与你
    2021-02-05 10:51

    To get statistics regarding column families in Cassandra, you can simply run the command:

    nodetool cfstats
    

    It reports statistics about tables which include the live data size as well as on disk.

    The documentation about this utility for Cassandra 2.1 is available here.

提交回复
热议问题