Skip to main content
Visvanath_JP
Silver ⭐️
September 29, 2021
Question

HDFS Data migration from one data center to other data center

what is the procedure to migrate HDFS DATA  from one data centre to another data centre?

3 replies

willx
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
September 29, 2021

Hi @Visvanath_JP,

 

The question could be more specific like what hadoop versions are two clusters, are both clusters secured, are they CDH/CDP or HDP. Do you only migrate data in HDFS layer or other layer, for example hive / hbase / kudu.

 

The most common way is using distcp to migrate data between hdfs clusters. 

https://docs.cloudera.com/cdp-private-cloud-base/7.1.7/scaling-namespaces/topics/hdfs-distcp-to-copy-files.html

If you are using CDH/CDP, BDR job is another choice (distcp integrated)

https://docs.cloudera.com/cdp-private-cloud-base/7.1.7/replication-manager/topics/rm-dc-hdfs-replication.html

Distcp guide:

https://hadoop.apache.org/docs/current/hadoop-distcp/DistCp.html#:~:text=DistCp%20(distributed%20copy)%20is%20a,specified%20in%20the%20source%20list.

 

Regards,

Will

If the answer helps, please accept as solution and click thumbs up.

Translate
Visvanath_JP
Silver ⭐️
September 29, 2021

CDH Version 5.15.1

 

only we want to migrate HDFS data.

Translate
willx
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
September 29, 2021

Then above solutions meet your needs.

Translate