KM Prak
KM Prak

Reputation: 127

Copy directory recursively from one Hadoop cluster to another

How can I copy a directory recursively from cluster1 to cluster2 in Hadoop HDFS? The outcome I would like is a directory structure mirrored with data.

Upvotes: 0

Views: 1507

Answers (1)

Mohamed IMLI
Mohamed IMLI

Reputation: 38

Use the built in tool distcp :

bash$ hadoop distcp hdfs://nn1:8020/foo/bar \ hdfs://nn2:8020/bar/foo

See the documentation here : Distcp tool

Upvotes: 1

Related Questions