sstablesplit
Use this tool to split SSTables files into multiple SSTables of a maximum designated size.
For example, if SizeTieredCompactionStrategy
was used for a major compaction and results in a excessively large SSTable, it’s a good idea to split the table because won’t get compacted again until the next huge compaction.
DataStax Enterprise must be stopped to use this tool.
Usage:
sstablesplit [options] <filename> [<filename>]*
Tarball and Installer No-Services path:
<installation_location>/resources/cassandra/tools/bin
Example:
sstablesplit -s 40 /var/lib/cassandra/data/Keyspace1/Standard1/*
Flag | Option | Description |
---|---|---|
|
Display stack traces. |
|
|
|
Display help. |
|
Do not snapshot the SSTables before splitting. |
|
|
|
Maximum size in megabytes (MB) for the output SSTables (default: 50). |
|
|
Verbose output. |
Some tools require a larger heap size.
For example, To increase the heap size for
to:
|