Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

How to upload and download file in hadoop?

Ads

 
 

Share on Google+Share on Google+

Java Coder
How to upload and download file in hadoop?
2 Answer(s)      2 months and 20 days ago
Posted in : Big Data

Hi,

I am trying to learn to upload the file on the Hadoop HDFS and then download the same file for learning the process.

How to upload and download file in hadoop?

What are the commands for uploading file to Hadoop?

What is the command for downloading file from Hadoop HDFS?

Thanks

Ads
View Answers

May 3, 2017 at 11:49 AM


Hi,

Hadoop provides the Hadoop File system which is known as HDFS and its distributed file system. Hadoop files are distributed on the Hadoop clusters.

To upload a file you can use the following command:

 hadoop fs -put /<local machime path/filename> /<hdfs path/>

Above command will upload the file on Hadoop.

Following is the command to download the file:

 hadoop fs -get /<hdfs path> /<local machime path>

Thanks



May 3, 2017 at 11:50 AM


Hi,

You can learn more at Hadoop and Big Data tutorials page.

Thanks


Ads