This documentation is for WSO2 Storage Server 1.0.3. View documentation for the latest release.
Key Count in a Cassandra Column Family - Storage Server 1.0.3 - WSO2 Documentation
Skip to end of metadata
Go to start of metadata


Key Count sample helps to count number of keys in a key space. Users can use this sample to verify the number of keys in a Column.


  • Java Development Kit / JRE version 1.6.* or 1.7.*
  • Apache Maven 3.x.x later

Building the Sample

Go to <SS_HOME>/samples/css/CLI/css-ks-keycounter

Build the project with Maven

mvn clean install

Build the project with dependency libraries

mvn clean assembly:assembly -o

Executing the Sample

Execute the program

java -jar target/cassandra_tool_kit-1.0-jar-with-dependencies.jar admin admin EVENT_KS bam_service_data_publisher

cassandra_tool_kit.KeyspaceStatistics tenantName tenantPasswd hostPool keyspace columnFamily

eg: cassandra_tool_kit.KeyspaceStatistics admin admin EVENT_KS bam_service_data_publisher

  • No labels