出发一路向北 发表于 2012-12-30 16:21:59

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
页: [1]
查看完整版本: hadoop回收站设置