The sstablelevelreset utility will reset the level to 0 on a given set of SSTables.
Reset level to 0 on a given set of SSTables that use LeveledCompactionStrategy.
- Package installations:
$ sstablelevelreset [--really-reset] keyspace table
- Tarball installations:
$ cd install_location/tools $ bin/sstablelevelreset [--really-reset] keyspace table
--really-resetis a warning that Cassandra is stopped before the tool is run.
$ sstablelevelreset --really-reset cycling cyclist_name
If the designated table is already at level 0, then no change occurs. If the SSTable is releveled, the metadata is rewritten to designate the level to 0.