How to copy files from HDFS to local system

0 votes

Hi Guys,

I am new to Hadoop. I want to copy files from HDFS to the local system. How can I do that?

Oct 1, 2020 in Big Data Hadoop by akhtar
• 38,170 points
140 views

1 answer to this question.

+1 vote

Hi@akhtar,

You can use the put command in the HDFS. This command is used to copy files from the HDFS file system to the local file system, just the opposite to put command. You can see the syntax given below.

$ hadoop fs -get [-f] [-p]
$ hadoop fs -get /user/data/sample.txt workspace/
answered Oct 1, 2020 by MD
• 95,040 points

Related Questions In Big Data Hadoop

0 votes
1 answer

Hadoop: How to copy directory from local system to hdfs using Java code?

Just use the FileSystem's copyFromLocalFile method. If the source Path ...READ MORE

answered Nov 14, 2018 in Big Data Hadoop by Omkar
• 69,090 points
2,737 views
0 votes
1 answer

Copy file from HDFS to the local file system

There are two possible ways to copy ...READ MORE

answered Mar 27, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
12,671 views
0 votes
1 answer

How to remove files from HDFS system?

Hi@akhtar, You will find rm command in your ...READ MORE

answered Oct 1, 2020 in Big Data Hadoop by MD
• 95,040 points
136 views
0 votes
1 answer
+1 vote
2 answers

What does hadoop fs -du command gives as output?

du command is used for to see ...READ MORE

answered Jul 23, 2019 in Big Data Hadoop by Lokesh Singh
3,060 views
0 votes
1 answer

How can I write text in HDFS using CMD?

Hadoop put & appendToFile only reads standard ...READ MORE

answered Apr 27, 2018 in Big Data Hadoop by Shubham
• 13,480 points
311 views
0 votes
1 answer

What is the command to find the free space in HDFS?

You can use dfsadmin which runs a ...READ MORE

answered Apr 29, 2018 in Big Data Hadoop by Shubham
• 13,480 points
769 views
0 votes
1 answer

How to find the used cache in HDFS

hdfs dfsadmin -report This command tells fs ...READ MORE

answered May 4, 2018 in Big Data Hadoop by Shubham
• 13,480 points
866 views
0 votes
1 answer

How to append files from local system to HDFS?

Hi@akhtar, You can use appendToFile in your Hadoop ...READ MORE

answered Oct 1, 2020 in Big Data Hadoop by MD
• 95,040 points
155 views
+1 vote
1 answer

How to copy file from Local file system to HDFS?

Hi@akhtar, You can copy files from your local ...READ MORE

answered Oct 19, 2020 in Big Data Hadoop by MD
• 95,040 points
215 views