Setting the trash interval

You can use Cloudera Manager to specify the time period after which a trash checkpoint directory is deleted.

  1. Go to the HDFS service.
  2. Click the Configurations tab.
  3. Select Scope > NameNode.
  4. Specify the Filesystem Trash Interval property, which controls the number of minutes after which a trash checkpoint directory is deleted and the number of minutes between trash checkpoints.
    For example, to enable trash so that deleted files are deleted after 24 hours, set the value of the Filesystem Trash Interval property to 1440.
    To apply this configuration property to other role groups as needed, edit the value for the appropriate role group.
  5. Restart all NameNodes.