nodetool upgradesstables

Rewrites SSTables for tables that are not running the current version of Cassandra. Ensures that the SSTables are compatible with the current version.

Rewrites SSTables for tables that are not running the current version of Cassandra. Ensures that the SSTables are compatible with the current version.

Synopsis

nodetool <options> upgradesstables
 ( -a | --include-all-sstables ) 
 -- <keyspace>  <table> ... 
Cassandra tarball installations:
installation_location/cassandra/bin
Table 1. Options
Short Long Description
-h --host Hostname or IP address.
-j --job Number of sstables to upgrade simultaneously; 0 uses all available threads.
-p --port Port number.
-pwf --password-file Password file path.
-pw --password Password.
-u --username Remote JMX agent username.
-a --include-all-sstables Snapshot name.
keyspace Name of keyspace.
table One or more table names, separated by a space.
-- Separates an option from an argument that could be mistaken for a option.

Description

Rewrites SSTables on a node that are incompatible with the current version. Use this command when upgrading your server or changing compression options.