This is an automated email from the ASF dual-hosted git repository.
qiaojialin pushed a commit to branch rel/0.12
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rel/0.12 by this push:
new 65590cf [TO rel/0.12] Fix doc of TsFileSplitTool (#4998)
65590cf is described below
commit 65590cffc0cf77f091324ac6cb9a92cbc6f98320
Author: Zesong Sun <[email protected]>
AuthorDate: Sun Jan 30 10:42:35 2022 +0800
[TO rel/0.12] Fix doc of TsFileSplitTool (#4998)
Co-authored-by: Zesong Sun <[email protected]>
---
docs/UserGuide/System-Tools/TsFile-Split-Tool.md | 3 ++-
docs/zh/UserGuide/System-Tools/TsFile-Split-Tool.md | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/docs/UserGuide/System-Tools/TsFile-Split-Tool.md
b/docs/UserGuide/System-Tools/TsFile-Split-Tool.md
index 1df4017..cf541be 100644
--- a/docs/UserGuide/System-Tools/TsFile-Split-Tool.md
+++ b/docs/UserGuide/System-Tools/TsFile-Split-Tool.md
@@ -39,7 +39,8 @@ For Linux or MacOs:
./split-tsfile-tool.sh <path of your TsFile> (-level <LEVEL of the target
files>) (-size <SIZE of the target files>)
```
-> Note that if `-level` is not set, the default level of target files is 10;
if `-size` is not set, the default size of target files is about 1GB.
+> Note that if `-level` is not set, the default level of target files is 10;
if `-size` is not set, the default size of target files is about 1GB. The unit
of `-size` is byte.
+> For example, if the target files size is 100MB, and the level is 6, the
command would be `./split-tsfile-tool.sh test.tsfile -level 6 -size 1048576000`
(Linux or MacOs)
Here are some configurations:
diff --git a/docs/zh/UserGuide/System-Tools/TsFile-Split-Tool.md
b/docs/zh/UserGuide/System-Tools/TsFile-Split-Tool.md
index 93a9acb..6ed3d8f 100644
--- a/docs/zh/UserGuide/System-Tools/TsFile-Split-Tool.md
+++ b/docs/zh/UserGuide/System-Tools/TsFile-Split-Tool.md
@@ -35,9 +35,10 @@ Windows:
Linux or MacOs:
```
-./split-tsfile-tool.bat <TsFile 文件路径> (-level <所拆分文件的层级>) (-size <所拆分文件的大小>)
+./split-tsfile-tool.sh <TsFile 文件路径> (-level <所拆分文件的层级>) (-size <所拆分文件的大小>)
```
-> 注意:如果不传入-level,所拆分文件的层级为 10;如果不传入-size,所拆分文件的大小约为 1GB;
+> 注意:如果不传入`-level`,所拆分文件的层级为 10;如果不传入`-size`,所拆分文件的大小约为 1GB;`-size` 后参数单位为
byte。
+> 例如,需要指定拆分为 100MB 的文件,且文件层级数为6,则命令为 `./split-tsfile-tool.sh test.tsfile
-level 6 -size 1048576000` (Linux or MacOs)
拆分中可以调节的配置项如下: