You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by su...@apache.org on 2022/01/29 03:36:38 UTC

[iotdb] 01/01: [TO rel/0.12] Fix doc of TsFileSplitTool

This is an automated email from the ASF dual-hosted git repository.

sunzesong pushed a commit to branch fix_split_doc_0.12
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 4c8189c31229dc697d1ea1d63ec5a092807b902e
Author: Zesong Sun <v-...@microsoft.com>
AuthorDate: Sat Jan 29 11:35:48 2022 +0800

    [TO rel/0.12] Fix doc of TsFileSplitTool
---
 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)
 
 拆分中可以调节的配置项如下: