hadoop添加垃圾回收站管用

在core-site.xml中增加如下配置,表明rm后会在trash中保留多少分钟:

<property>

<name>fs.trash.interval</name>

<value>10080</value>

<description>

Numberofminutesbetweentrashcheckpoints.Ifzero,thetrashfeatureisdisabled

</description>

</property>