Copy a directory from one node in the cluster to another in HDFS.

Big Data Hadoop

I have configured two Hadoop Cluster in two different systems. I want to copy a directory from one node in the cluster to another. How can I do that?

1
Answers

Replies

It is possible to copy a directory from one node in a cluster to another in the HDFS.  distcp command is used to copy the directory from one node to another node. The command is represented below:


$ hdfs dfs -distcp hdfs://namenodeA/apache_hadoop hdfs://namenodeB/hadoop

 
 

If you want to unleash your potential in this competitive field, please visit the Big Data Hadoop course page for more information, where you can find the Big Data Hadoop tutorials and Big Data Hadoop frequently asked interview questions and answers as well.

 

This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.