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, 2019 in Big Data Hadoop by nitinrawat895
• 11,380 points
2,502 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, 2019 by ravikiran
• 4,620 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
12,369 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, 2019 in Big Data Hadoop by Gitika
• 65,770 points
2,727 views
+1 vote
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
• 11,380 points
11,076 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
• 11,380 points
2,573 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
109,065 views
–1 vote
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,350 points
4,641 views
0 votes
1 answer
0 votes
1 answer

Can anyone help me out to install the following packages R-MR, R-HDFS, and R-HBase on R-HAdoop?

I have understood your problem, I will ...READ MORE

answered May 31, 2019 in Big Data Hadoop by ravikiran
• 4,620 points
662 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP