nodetool relocatesstables
Rewrites any SSTable that contains tokens that should be in another data directory for JBOD disks. This operation effectively relocates SSTables to the correct disk.
This nodetool command can be used to manually rewrite the location of SSTables on disk.
It is for use with JBOD disk storage.
The command can also be used if you change the replication factor for the cluster stored on JBOD or if you add a new disk.
If all the tokens are correctly stored in the data directories, nodetool relocatesstables has no effect.
Synopsis
nodetool <options> relocatesstables -- <keyspace> <table>
Tarball and Installer No-Services path:
<installation_location>/resources/cassandra/bin
Options
| Short | Long | Description |
|---|---|---|
|
|
Hostname or IP address. |
|
|
Port number. |
|
|
Password file path. |
|
|
Password. |
|
|
Remote JMX agent username. |
keyspace |
Name of keyspace. |
|
table |
Name of table. |
|
|
Separates an option from an argument that could be mistaken for an option. |
|
Examples
nodetool relocatesstables -- cycling