I need to copy data from one HDFS to another HDFS. Can you help me do so?

0 votes
I have a setup which includes two Hadoop file systems, HDFS-x and HDFS-y. Now, I need to copy a few tables from HDFS-x to HDFS-y. I wish to do it without having to do a move or migrate operation. It is possible to do so via any of the commands?
May 16 in Big Data Hadoop by nitinrawat895
• 10,710 points
65 views

1 answer to this question.

0 votes

I understood your issue.

Let me help you with a tool that can do the job for you.

  • DistCp is a tool named as a distributed copy which is used to copy data in between clusters. 
  • This tool basically uses MapReduce in the background to do the job.
  • This tool can also manage the jobs of Data Recovery, Error Handling, and Report generation.

Usage Method:

$ hadoop distcp <src> <dst>

Example:

$ hadoop distcp hdfs://loc1:8020/file-x hdfs://loc2:8020/file-y

Here file -x from loc1 HDFS is copied to file-y in loc2 of the second HDFS.

There are two versions of this software which are available, Namely:

answered May 16 by ravikiran
• 4,560 points

Related Questions In Big Data Hadoop

0 votes
1 answer
+1 vote
3 answers

when i tried to run the hdfs namenode -format command...its failed to run..can anyone help me with this???

Hi Suriyaprakash, I guess the path for hadoop ...READ MORE

answered Jul 23, 2018 in Big Data Hadoop by avi_man_utd
834 views
0 votes
1 answer

How can you transfer data from hive to HDFS ?

Hey, Data in Hive tables reside on HDFS, ...READ MORE

answered May 16 in Big Data Hadoop by Gitika
• 25,340 points
111 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,710 points
3,330 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,710 points
399 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
16,468 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,260 points
1,204 views
0 votes
1 answer
0 votes
1 answer