sstablerepairedset

This tool is intended to mark specific SSTables as repaired or unrepaired. It is used to set the repairedAt status on a given set of SSTables. This metadata facilitates incremental repairs. It can take in the path to an individual SSTable or the path to a file containing a list of SSTables paths.

Do not run this command until you have stopped DataStax Enterprise on the node.

Use this tool in the process of migrating an installation to incremental repair.

Usage:

sstablerepairedset [--really-set] [--is-repaired | --is-unrepaired]
[-f sstable-list | sstables]

Tarball and Installer No-Services path:

<installation_location>/resources/cassandra/tools/bin

Procedure

  • Choose SSTables to mark as repaired.

    $ sstablerepairedset --really-set --is-repaired data/data/cycling/cyclist_name-a882dca02aaf11e58c7b8b496c707234/la-1-big-Data.db
  • Use a file to list the SSTable to mark as unrepaired.

    $ /sstablerepairedset --is-unrepaired -f repairSetSSTables.txt

    A file like repairSetSSTables.txt would contain a list of SSTable (.db) files, as in the following example:

    /data/cycling/cyclist_by_country-82246fc065ff11e5a4c58b496c707234/ma-1-big-Data.db
    /data/cycling/cyclist_by_birthday-8248246065ff11e5a4c58b496c707234/ma-1-big-Data.db
    /data/cycling/cyclist_by_birthday-8248246065ff11e5a4c58b496c707234/ma-2-big-Data.db
    /data/cycling/cyclist_by_age-8201305065ff11e5a4c58b496c707234/ma-1-big-Data.db
    /data/cycling/cyclist_by_age-8201305065ff11e5a4c58b496c707234/ma-2-big-Data.db

    Use the following command to list all the Data.db files in a keyspace:

    find '/home/user/datastax-ddc-3.2.0/data/keyspace1/' -iname "*Data.db*"

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