Skip to main content

TsFile Settle tool

About 1 min

TsFile Settle tool

The TsFile Settle tool is used to rewrite one or more TsFiles that have modified record files, and submit the TsFile compaction task by sending an RPC to the DataNode to rewrite the TsFile.


#MacOs or Linux
./ -h [host] -p [port] -f [filePaths]
# Windows
.\settle-tsfile.bat -h [host] -p [port] -f [filePaths]

The host and port parameters are the host and port of the DataNodeInternalRPCService. If not specified, the default values are and 10730 respectively. The filePaths parameter specifies the absolute paths of all TsFiles to be submitted as a compaction task on this DataNode, separated by spaces. Pass in at least one path.


./ -h -p 10730 -f /data/sequence/ /data/sequence/ /data/sequence/


  • Specify at least one TsFile
  • All specified TsFiles are in the same space and are continuous, and cross-space compaction is not supported
  • The specified file path is the absolute path of the TsFile of the node where the specified DataNode is located
  • The specified DataNode is configured to allow the space where the input TsFile is located to perform the compaction
  • At least one of the specified TsFiles has a corresponding .mods file

Copyright © 2024 The Apache Software Foundation.
Apache and the Apache feather logo are trademarks of The Apache Software Foundation

Have a question? Connect with us on QQ, WeChat, or Slack. Join the community now.

We use Google Analytics to collect anonymous, aggregated usage information.