How to upload and download file in hadoop?

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

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









Related Tutorials/Questions & Answers:
Advertisements