Introduction
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.
Prerequisites
- Java Development Kit / JRE version 1.6.* or 1.7.*
- Apache Maven 3.x.x later
JDK and Ant setup instructions are given in section Installation Prerequisites.
Building the Sample
Go to $CARBON_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 10.100.3.234:9170 EVENT_KS bam_service_data_publisher
or
cassandra_tool_kit.KeyspaceStatistics tenantName tenantPasswd hostPool keyspace columnFamily
eg: cassandra_tool_kit.KeyspaceStatistics admin admin 10.100.3.234:9170 EVENT_KS bam_service_data_publisher