title: Is there a way to set a TTL for certain directories in HDFS?
body: <p>I have the following requirements. I am adding date-wise data to a specific directory in HDFS, and I need to keep a backup of the last 3 sets, and remove the rest. Is there a way to set a TTL for the directory so that the data perishes automatically after a certain number of days?</p>
  
  <p>If not, is there a way to achieve similar results?</p>