blob: 7aaf24fe5b10404238e17a11f44d3d964241b89c [file] [log] [blame]
import{_ as e,O as i,P as t,ah as o,aW as s}from"./framework-e4340ccd.js";const l={},n=s(`<h1 id="tsfile-split-tool" tabindex="-1"><a class="header-anchor" href="#tsfile-split-tool" aria-hidden="true">#</a> TsFile Split Tool</h1><p>IoTDB version 0.12 could produce large files, which leads to difficulties in maintenance. Therefore, since version 0.12.5 and 0.13, TsFile split tool is provided. The split tool can split the large TsFile into several small TsFile according to the configuration.</p><p>After building the server, the startup script of this tool will appear under the <code>server\\target\\iotdb-server-{version}\\tools\\tsfileToolSet</code> directory.</p><p>Command:</p><p>For Windows:</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>.\\split-tsfile-tool.bat &lt;path of your TsFile&gt; (-level &lt;LEVEL of the target files&gt;) (-size &lt;SIZE of the target files&gt;)
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><p>For Linux or MacOs:</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>./split-tsfile-tool.sh &lt;path of your TsFile&gt; (-level &lt;LEVEL of the target files&gt;) (-size &lt;SIZE of the target files&gt;)
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><blockquote><p>Note that if <code>-level</code> is not set, the default level of target files is 10; if <code>-size</code> is not set, the default size of target files is about 1GB. The unit of <code>-size</code> is byte. For example, if the target files size is 100MB, and the level is 6, the command would be <code>./split-tsfile-tool.sh test.tsfile -level 6 -size 1048576000</code> (Linux or MacOs)</p></blockquote><p>Here are some configurations:</p><ol><li>The size of target files could be configured by the input param, which is 1GB by default. This configuration is also the target file size in compaction in 0.13. File size could determine whether the compaction is proceeded in 0.13, so this configuration could make sure there is no compaction after restarting.</li><li>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.</li><li>The points number of chunk could be configured by <code>chunk_point_num_lower_bound_in_compaction</code>, which is 100 by default. This configuration is also the points number of target file in compaction in 0.13.</li></ol><p>Here are some more tips:</p><ol><li>TsFile split tool is offline maintenance tool. Before splitting a file, you should make sure the file to be split is closed (aka with <code>tsFile.resource</code>) and IoTDB is shut down. After splitting, restart IoTDB.</li><li>TsFile split tool doesn&#39;t support splitting TsFile with deletion interval (aka with <code>.mods</code> file) and with aligned timeseries.</li></ol>`,13);function a(r,c){return i(),t("div",null,[o(`
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
`),n])}const h=e(l,[["render",a],["__file","TsFile-Split-Tool.html.vue"]]);export{h as default};