TsFile Split Tool
After building the server, the startup script of this tool will appear under the directory.
For Windows:
./split-tsfile-tool.sh <path of your TsFile> (-level <LEVEL of the target files>) (-size <SIZE of the target files>)
- The level of target files is determined by the input param, which is 10 by default. File level could determine whether the compaction is proceeded in 0.12, so this configuration could make sure there is no compaction after restarting.
Here are some more tips:
- TsFile split tool is offline maintenance tool. Before splitting a file, you should make sure the file to be split is closed (aka with
tsFile.resource
) and IoTDB is shut down. After splitting, restart IoTDB.