sstablesplit
Use this tool to split SSTables files into multiple SSTables of a maximum designated size. For example, if SizeTieredCompactionStrategy (STCS) 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.
Synopsis
sstablesplit [options] <filename> [<filename>]*
For tarball and Installer No-Services installations, run this command from INSTALL_DIRECTORY/resources/cassandra/bin.
Example
sstablesplit -s 40 /var/lib/cassandra/data/Keyspace1/Standard1/*
Options
| Short | Long | 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. |
Troubleshoot OutOfMemoryError
Some tools require a larger heap size.
If you get OutOfMemoryError exceptions, try increasing the heap size for sstablesplit.
To do this, edit the MAX_HEAP_SIZE in the tools/bin/sstablesplit shell script.
For example:
MAX_HEAP_SIZE="8G"