nodetool upgradesstables

Rewrites older SSTables to the current version of Cassandra.

Rewrites older SSTables to the current version of Cassandra.

Synopsis 

nodetool <options> upgradesstables
  -a | --include-all-sstables  
 -- <keyspace>  <table> ... 
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 or --include-all-sstables includes all SSTables, even those with the current settings. See Examples below.
  • keyspace is the keyspace name.
  • table is one or more table names, separated by a space.

Description 

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

Examples 

$ upgradesstables 
Reads only SSTables created by old major versions of Cassandra and re-writes them to the current version one at a time.
$ upgradesstables -a 
Reads all existing SSTables and re-writes them to the current Cassandra version one at a time.
$ upgradesstables -a keyspace table 
Reads specific SSTables and re-writes them to the current Cassandra version one at a time.