forked from docs/doc-exports
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>
48 lines
3.4 KiB
HTML
48 lines
3.4 KiB
HTML
<a name="mrs_01_24801"></a><a name="mrs_01_24801"></a>
|
|
|
|
<h1 class="topictitle1">CLEAN</h1>
|
|
<div id="body0000001534515246"><div class="note" id="mrs_01_24801__note738014158618"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_24801__p7380115062">This section applies only to MRS 3.2.0 or later.</p>
|
|
</div></div>
|
|
<div class="section" id="mrs_01_24801__section123578556333"><h4 class="sectiontitle">Function</h4><p id="mrs_01_24801__p1450191414340">Cleans instants on the Timeline based on configurations and deletes historical version files to reduce the data storage and read/write pressure of Hudi tables.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_24801__section35491218143419"><h4 class="sectiontitle">Syntax</h4><p id="mrs_01_24801__p1940213349016"><strong id="mrs_01_24801__b39864817019">RUN CLEAN ON</strong> tableIdentifier;</p>
|
|
<p id="mrs_01_24801__p34027341508"><strong id="mrs_01_24801__b9546614111">RUN CLEAN ON</strong> tablelocation;</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_24801__section1510712326340"><h4 class="sectiontitle">Parameter Description</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24801__table135613361810" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters</caption><thead align="left"><tr id="mrs_01_24801__row11357183613110"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.2.2.3.1.1"><p id="mrs_01_24801__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_24801__p173578363120">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_24801__row535716361719"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.2.3.1.1 "><p id="mrs_01_24801__p133575361111">tableIdentifier</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.2.3.1.2 "><p id="mrs_01_24801__p1135773615119">Name of the Hudi table</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24801__row8357113610110"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.2.3.1.1 "><p id="mrs_01_24801__p4905201730">tablelocation</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.2.3.1.2 "><p id="mrs_01_24801__p193571368111">Storage path of the Hudi table</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="mrs_01_24801__section066881512813"><h4 class="sectiontitle">Example</h4><pre class="screen" id="mrs_01_24801__screen8704121211117">run clean on h1;
|
|
run clean on "/tmp/hudi/h1";</pre>
|
|
</div>
|
|
<div class="section" id="mrs_01_24801__section59394813355"><h4 class="sectiontitle">Precautions</h4><p id="mrs_01_24801__p13594920373">Only the table owner can perform the clean operation on a table.</p>
|
|
<p id="mrs_01_24801__p1266131555612">To modify the default cleaning parameters, run set commands to configure the parameters such as the number of commits to be retained.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_24801__section844511518375"><h4 class="sectiontitle">System Response</h4><p id="mrs_01_24801__p1543562465">You can view command execution results in the driver log or on the client.</p>
|
|
</div>
|
|
<p id="mrs_01_24801__p8060118"></p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_24272.html">Hudi DML</a></div>
|
|
</div>
|
|
</div>
|
|
|