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

相关文章:

  • 2021-09-06
  • 2021-09-10
  • 2022-02-17
  • 2021-10-31
  • 2022-02-11
  • 2021-12-14
  • 2021-12-24
猜你喜欢
  • 2022-12-23
  • 2021-10-10
  • 2021-10-04
  • 2021-08-20
  • 2021-11-01
  • 2021-08-30
  • 2021-04-22
相关资源
相似解决方案