Support Questions
Find answers, ask questions, and share your expertise

BDR - HDFS - exclusion

BDR - HDFS - exclusion

Explorer

Hi, In BDR HDFS replication I want to exclude all files which end with ".tmp" in the directory "/backups/"

 

Appreciate it if somebody could give the expression for this to add in BDR "Add Exclusion". 

 

Thanks

2 REPLIES 2

Re: BDR - HDFS - exclusion

Explorer

BTW files with ".tmp" extension could be under any subdirectory under "/backups".

 

Thanks.

Re: BDR - HDFS - exclusion

Cloudera Employee

Hi, @vtpcnk Greetings!

Thank you for posting in Cloudera Community.

 

You can use a RegEx pattern like this, Try this out:

CM > Backup > Schedules > Actions > Edit Configurations > Advanced > Path Exclusion

^(?!.*.tmp).*$

For more information, here are some nicer reads:

Section 7: CLDR Doc (Adding Exclusion) 

How-to: Building/Testing RegEx

 

Hope this helps!

 

Is your question answered? If Yes, Feel free to mark the answer as "Accept as Solution".
If you find a reply helpful, say thanks by clicking on the "thumbs-up" button.