Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Retain deleted files for 7 days in my filesystem

Highlighted

Retain deleted files for 7 days in my filesystem

New Contributor

I have a cloudera cluster CDH 6.1. I want to retain the deleted files in my filesystem for 7 days. This is just to protect the data from accidental data loss.

Suggest me the possible solution.

Thanks

 

1 REPLY 1
Highlighted

Re: Retain deleted files for 7 days in my filesystem

Expert Contributor

@Muhammad_Waqas1 

 

You can set the retention period for HDFS data by configuring the trash interval. Refer below document for details.

 

https://docs.cloudera.com/documentation/enterprise/latest/topics/cm_mc_config_trash.html#xd_583c10bf...

 

Hope this helps,

Paras

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Don't have an account?
Coming from Hortonworks? Activate your account here