Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

BDR in CDH 6.3 - are deletes replicated as well?

Explorer

Hi all,

I am curious to know if the BDR schedules sync deletes as well? Meaning, if some files are deleted from the source, will the next BDR run delete those files from the destination as well to make the source and destination exact copies?

Thanks!

1 ACCEPTED SOLUTION

Rising Star

Hello @rajatsachan,

Using the Delete Policy, you may set up any of the below options

Delete Policy - Whether files that were deleted on the source should also be deleted from the destination directory. This policy also determines the handling of files in the destination location that are unrelated to the source. Options include:

  • Keep Deleted Files - Retains the destination files even when they no longer exist at the source. (This is the default.).
  • Delete to Trash - If the HDFS trash is enabled, files are moved to the trash folder. (Not supported when replicating to Amazon S3.)
  • Delete Permanently - Uses the least amount of space; use with caution.

 

Review the replication document for more details:

https://docs.cloudera.com/documentation/enterprise/latest/topics/cm_bdr_hdfs_replication.html

 

Cheers!

View solution in original post

2 REPLIES 2

Rising Star

Hello @rajatsachan,

Using the Delete Policy, you may set up any of the below options

Delete Policy - Whether files that were deleted on the source should also be deleted from the destination directory. This policy also determines the handling of files in the destination location that are unrelated to the source. Options include:

  • Keep Deleted Files - Retains the destination files even when they no longer exist at the source. (This is the default.).
  • Delete to Trash - If the HDFS trash is enabled, files are moved to the trash folder. (Not supported when replicating to Amazon S3.)
  • Delete Permanently - Uses the least amount of space; use with caution.

 

Review the replication document for more details:

https://docs.cloudera.com/documentation/enterprise/latest/topics/cm_bdr_hdfs_replication.html

 

Cheers!

Explorer

Thank you so much @tjangid . This surely clarifies my doubts.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.