Reputation: 127
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
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