Yang, Tong 48706b7552 MRS COMP-LTS 320-lts.1 version
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2024-04-12 12:51:10 +00:00

46 lines
3.6 KiB
HTML

<a name="mrs_01_24783"></a><a name="mrs_01_24783"></a>
<h1 class="topictitle1">ARCHIVELOG</h1>
<div id="body0000001585034873"><div class="note" id="mrs_01_24783__note738014158618"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_24783__p7380115062">This section applies only to MRS 3.2.0 or later.</p>
</div></div>
<div class="section" id="mrs_01_24783__section123578556333"><h4 class="sectiontitle">Function</h4><p id="mrs_01_24783__p1450191414340">Archives instants on the Timeline based on configurations and deletes archived instants from the Timeline to reduce the operation pressure on the Timeline.</p>
</div>
<div class="section" id="mrs_01_24783__section35491218143419"><h4 class="sectiontitle">Syntax</h4><p id="mrs_01_24783__p1940213349016"><strong id="mrs_01_24783__b39864817019">RUN ARCHIVELOG ON</strong> tableIdentifier;</p>
<p id="mrs_01_24783__p34027341508"><strong id="mrs_01_24783__b9546614111">RUN ARCHIVELOG ON</strong> tablelocation;</p>
</div>
<div class="section" id="mrs_01_24783__section1510712326340"><h4 class="sectiontitle">Parameter Description</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24783__table135613361810" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters</caption><thead align="left"><tr id="mrs_01_24783__row11357183613110"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.2.2.3.1.1"><p id="mrs_01_24783__p235743610111">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.2.2.3.1.2"><p id="mrs_01_24783__p173578363120">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_24783__row535716361719"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.2.3.1.1 "><p id="mrs_01_24783__p133575361111">tableIdentifier</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.2.3.1.2 "><p id="mrs_01_24783__p1135773615119">Name of the Hudi table</p>
</td>
</tr>
<tr id="mrs_01_24783__row8357113610110"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.2.3.1.1 "><p id="mrs_01_24783__p4905201730">tablelocation</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.2.3.1.2 "><p id="mrs_01_24783__p193571368111">Storage path of the Hudi table</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="mrs_01_24783__section066881512813"><h4 class="sectiontitle">Example</h4><pre class="screen" id="mrs_01_24783__screen8704121211117">run archivelog on h1;
run archivelog on "/tmp/hudi/h1";</pre>
</div>
<div class="section" id="mrs_01_24783__section59394813355"><h4 class="sectiontitle">Precautions</h4><ul id="mrs_01_24783__ul187355423416"><li id="mrs_01_24783__li87345413345">Only instants that are not cleaned can be archived.</li><li id="mrs_01_24783__li196781759123413">No matter whether the compaction operation is performed, at least <em id="mrs_01_24783__i17499103711376">x</em> (<em id="mrs_01_24783__i115510306372">x</em> indicates the value of <strong id="mrs_01_24783__b0599327864">hoodie.compact.inline.max.delta.commits</strong>) instants are retained and not archived to ensure that there are enough instants to trigger the compaction schedule.</li></ul>
</div>
<div class="section" id="mrs_01_24783__section844511518375"><h4 class="sectiontitle">System Response</h4><p id="mrs_01_24783__p8060118">You can view command execution results in the driver log or on the client.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_24272.html">Hudi DML</a></div>
</div>
</div>