nodetool toppartitions

Sample and print the most active partitions for a given column family.

Synopsis

nodetool <options> toppartitions <keyspace>  <table> <duration>  ... 
Table 1. Options
Short Long Description
-h --host Hostname or IP address
-p --port Port number
-pwf --password-file Password file path
-pw --password Password
-u --username User name
-- Separates an option from an argument that could be mistaken for a option.
Other options are:
  • -a <samplers> comma separated list of samplers to use (default: all)
  • -k <topCount> number of the top partitions to list (default: 10)
  • -s <size> capacity of stream summary, closer to the actual cardinality of partitions will yield more accurate results (default: 256)
  • keyspace is a keyspace name
  • cfname is a column family name
  • duration in milliseconds

Description

The nodetool toppartitions command samples and prints the most active partitions during the duration specified. A keyspace and column family must be specified, as well as a duration in milliseconds.

Examples

Sample the most active partitions for the table test.users for 1,000 milliseconds

nodetool toppartitions test users 1000

Output is produced, similar to the following: