dsetool list_subranges
Lists the subranges of data in a keyspace by dividing a token range into a number of smaller subranges. Useful when the specified range is contained in the target node’s primary range.
Synopsis
dsetool list_subranges <keyspace_name> <table_name>
<keys_per_range> <start_token> <end_token>
Syntax conventions | Description |
---|---|
UPPERCASE |
Literal keyword. |
Lowercase |
Not literal. |
<`Italics>` |
Variable value. Replace with a valid option or user-defined value. |
|
Optional.
Square brackets ( |
|
Group.
Parentheses ( |
|
Or.
A vertical bar ( |
|
Repeatable.
An ellipsis ( |
|
Single quotation ( |
|
Map collection.
Braces ( |
|
Set, list, map, or tuple.
Angle brackets ( |
|
End CQL statement.
A semicolon ( |
|
Separate the command line options from the command arguments with two hyphens ( |
|
Search CQL only: Single quotation marks ( |
|
Search CQL only: Identify the entity and literal value to overwrite the XML element in the schema and solrconfig files. |
- keyspace_name table_name
-
Keyspace table pair.
- keys_per_range
-
The approximate number of rows per subrange.
- start_token
-
The start token of a specified range of tokens.
- end_token
-
The end token of a specified range of tokens.
Example
To run the command:
dsetool list_subranges demo health_data 10000 113427455640312821154458202477256070485 0
The subranges are output and can be used as input to the nodetool repair command.
Start Token End Token Estimated Size
------------------------------------------------------------------------------------------------
113427455640312821154458202477256070485 132425442795624521227151664615147681247 11264
132425442795624521227151664615147681247 151409576048389227347257997936583470460 11136
151409576048389227347257997936583470460 0 11264