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

<property>
<name>fs.trash.interval</name>
<value>10080</value>
<description>
Number of minutes between trash checkpoints. If zero, the trash feature is disabled
</description>
</property>

hadoop的这个默认值是0.所以需要设置。

相关文章:

猜你喜欢
  • 2021-12-27
  • 2021-11-18
  • 2021-09-03
  • 2021-10-26
相关资源
相似解决方案