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 Path Exclusion

New Contributor

I have just started working in this environment.

 

I would like to know, how to exclude sub folder from my replication.

 

My directory structure is

                    /data/etl1/source/, /data/etl1/release/

                    /data/etl2/source/, /data/etl2/release/

                    /data/etl3/source/, /data/etl3/release/

                    /data/etl4/source/, /data/etl4/release/

                    /data/etl5/source/, /data/etl5/release/

                    /data/etl6/source/, /data/etl6/release/

 

Now i would exclude all the files from /data/etl?/source/ folder) and should only replicate /data/etl!/source.

 

Source path: /data/

target path: /data/

 

1 REPLY 1

Expert Contributor

Hi, 

In my opnion you only should config the hdfs-site.xml file in your configuration path.

 

For example adding this lines on your datanodes(hdfs-site.xml):

            <property>
                 <name>dfs.data.dir</name>
                 <value>file:///data/etl1/"source or release"/</value>
            </property>

 

 

Regards,

Manu.

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