forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
48 lines
5.1 KiB
HTML
48 lines
5.1 KiB
HTML
<a name="mrs_01_0806"></a><a name="mrs_01_0806"></a>
|
|
|
|
<h1 class="topictitle1">Configuring the Recycle Bin Mechanism</h1>
|
|
<div id="body1590130535010"><div class="section" id="mrs_01_0806__sfa448ccbf49c4bd29a853b39fec722c5"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_0806__a80a96788fb264f4d9d4c06e0d19414cb">On HDFS, deleted files are moved to the recycle bin (trash can) so that the data deleted by mistake can be restored.</p>
|
|
<p id="mrs_01_0806__a9c5aa1ec791c417ba7c3bafbc4aa654c">You can set the time threshold for storing files in the recycle bin. Once the file storage duration exceeds the threshold, it is permanently deleted from the recycle bin. If the recycle bin is cleared, all files in the recycle bin are permanently deleted.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_0806__s18aed4d88c864649b70de52639d5a2ed"><h4 class="sectiontitle">Configuration Description</h4><p id="mrs_01_0806__a6bb3e0c8bf8b4976a5e6891d1ea665af">If a file is deleted from HDFS, the file is saved in the trash space rather than cleared immediately. After the aging time is due, the deleted file becomes an aging file and will be cleared based on the system mechanism or manually cleared by users.</p>
|
|
<p id="mrs_01_0806__a9457f74fb2c24ad89454091372f8aded"><strong id="mrs_01_0806__b12359775812">Parameter portal:</strong></p>
|
|
<p id="mrs_01_0806__p20478340125911">Go to the <strong id="mrs_01_0806__b94121447101015">All Configurations</strong> page of HDFS and enter a parameter name in the search box by referring to <a href="mrs_01_2125.html">Modifying Cluster Service Configuration Parameters</a>.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_0806__t71d65ccd0eef4a44b510363ca38af328" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="mrs_01_0806__r0bf97fd3bdb34f12850c30ba8d15955e"><th align="left" class="cellrowborder" valign="top" width="24.169999999999998%" id="mcps1.3.2.5.2.4.1.1"><p id="mrs_01_0806__a0d6a86a451f944abb56c91feabc34cef"><strong id="mrs_01_0806__b174282681020">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60.099999999999994%" id="mcps1.3.2.5.2.4.1.2"><p id="mrs_01_0806__a6eecf6a877ba42e29d5142f2cb74cbeb"><strong id="mrs_01_0806__b96521911111010">Description</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15.73%" id="mcps1.3.2.5.2.4.1.3"><p id="mrs_01_0806__a5c85db5dc6174c94b646458d39c8b1a3"><strong id="mrs_01_0806__b1489310129109">Default Value</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_0806__r8fec317da2af4f949ce80fd33e4a3503"><td class="cellrowborder" valign="top" width="24.169999999999998%" headers="mcps1.3.2.5.2.4.1.1 "><p id="mrs_01_0806__a2f7fccf295364e08b5081720504edfb1">fs.trash.interval</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.099999999999994%" headers="mcps1.3.2.5.2.4.1.2 "><p id="mrs_01_0806__p11785111217183">Trash collection time, in minutes. If data in the trash station exceeds the time, the data will be deleted. Value range: 1440 to 259200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.73%" headers="mcps1.3.2.5.2.4.1.3 "><p id="mrs_01_0806__p1827764295811">1440</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0806__r092ce413d4aa4b8eb5d98a75bbf7c191"><td class="cellrowborder" valign="top" width="24.169999999999998%" headers="mcps1.3.2.5.2.4.1.1 "><p id="mrs_01_0806__a7eb4e9282fcc4236baff68c31a590908">fs.trash.checkpoint.interval</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.099999999999994%" headers="mcps1.3.2.5.2.4.1.2 "><p id="mrs_01_0806__a7eb4c71e8aab44579a318b266c22c6d1">Interval between trash checkpoints, in minutes. The value must be less than or equal to the value of <strong id="mrs_01_0806__b4774165211">fs.trash.interval</strong>. The checkpoint program creates a checkpoint every time it runs and removes the checkpoint created <strong id="mrs_01_0806__b92722175315">fs.trash.interval</strong> minutes ago. For example, the system checks whether aging files exist every 10 minutes and deletes aging files if any. Files that are not aging are stored in the checkpoint list waiting for the next check.</p>
|
|
<p id="mrs_01_0806__aad88792dc1cc4709a768f2eacb7feb76">If this parameter is set to 0, the system does not check aging files and all aging files are saved in the system.</p>
|
|
<p id="mrs_01_0806__aab7c47b3fde54e71bbf333e7febe3004">Value range: 0 to <i><span class="varname" id="mrs_01_0806__v1eb7c4d5210b49d4ab606defd388c0ee">fs.trash.interval</span></i></p>
|
|
<div class="note" id="mrs_01_0806__nb2cae14f28b144599432ce674104f3ab"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="mrs_01_0806__a1b06001163a54c9f9dff218d366240cd">It is not recommended to set this parameter to 0 because aging files will use up the disk space of the cluster.</p>
|
|
</div></div>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.73%" headers="mcps1.3.2.5.2.4.1.3 "><p id="mrs_01_0806__abe69c4186a8d4a5cb572507f35c62cf0">60</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0790.html">Using HDFS</a></div>
|
|
</div>
|
|
</div>
|
|
|