hadoop回收站设置

hadoop回收站设置:

hadoop 的回收站trash功能默认是关闭的。

开启方式为:在core-site.xml中设置:
<property>
<name>fs.trash.interval</name>
<value>1440</value>
<description>Number of minutes between trash checkpoints.
If zero, the trash feature is disabled.
</description>
</property>
fs.trash.interval 的含义时文件删除后保留时长,默认为0,单位为分钟。

清空命令为:hdfs dfs -expunge

注意:回收站位于用户目录下,例:/user/hadoop

posted @ 2012-11-04 12:19  出发一路向北  阅读(449)  评论(0编辑  收藏  举报