How to automate Hadoop recycle bin emptying

I can empty the trash under my user folder by running hadoop fs -expunge This eliminates files that are older than the value fs.trash.interval. Is it possible to automatically delete a disk to restore a disk?

I also see the following output when I run expunge

[cloudera@localhost conf]$ hadoop fs -expunge 14/07/17 15:43:54 INFO fs.TrashPolicyDefault: Namenode trash configuration: Deletion interval = 1 minutes, Emptier interval = 0 minutes.

The empty interval is 0, which indicates that automatic cleaning is disabled. Where is this value configured?

+4
source share
1 answer

The code assumes that it is called fs.trash.interval.

EDIT: Sorry, incomprehensible question.

emptier , , FS_TRASH_CHECKPOINT_INTERVAL_KEY.

, fs.trash.checkpoint.interval.

: , xml conf .

+3

All Articles