sstableupgrade

Rewrite the SSTables in the specified snapshot to match the currently installed version of the DataStax Enterprise (DSE) database.

To restore a table from a snapshot with sstableloader, upgrade to a compatible SSTable version. SSTable versions are incremented when the format changes (not with each release of the database).

Use the version number in the SSTable file name to determine compatibility and upgrade requirements. The first two letters of the file name is the version, where the first letter indicates a major version and the second letter indicates a minor version. For example, the following SSTable version is mc:

data/cycling/cyclist_expenses-2d955621194c11e7a38d9504a063a84e/mc-6-big-Data.db

For SSTable compatibility and upgrading, see SSTable compatibility.

To upgrade from SSTables created with DSE 4.6 and earlier, you must first upgrade the SSTables you want to restore to version ka (using DSE version 4.7 or 4.8); SSTables created with DSE version 4.7 and higher are compatible with all DSE 5.x versions.

Usage:

sstableupgrade [options] keyspace_name table_name [snapshot_filename]

Tarball and Installer No-Services path:

<installation_location>/resources/cassandra/bin

The snapshot option upgrades the specified snapshot only.

Flag
Flag Option Description

--debug

Display stack traces.

-h

--help

Display help.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com