How to upload and download file in hadoop?

Ads
 

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

Ads









Related Tutorials/Questions & Answers:
How to upload and download file in hadoop?
upload and download a file - Java Beginners
Advertisements
how to upload and download images in java?
how to download a file from a folder??
how to upload and download images using buttons in jsp?
How to upload file on FTP Server
How to upload file using JSP?
how to upload file using FTP in java
how to create a php script to download file
How to Increase Upload File Size Limit in php
upload and download mp3
How I Upload File and Store that file name in Database using JSP
how to upload a file of apk format in a folder from servlet
Upload and Download multiple files
File Download in jsp
how to create a php script to download file from database mysql
how to create a php script to download file from database mysql
How to download and save a file from Internet using Java?
how to create xls file and give download option using jsp/servlet?
How i upload file and save that record in database using JSP?
How to upload zip file from android to server programmatically?????
how do i upload a file by using servlet or jsp?
how to upload multiple files in jsp and saving the path in database and the file in folder
File Upload
upload and download video
file download
How display a image on servlet from file upload - JSP-Servlet
How to browse and upload the file in same page using jsp.
How to browse and upload the file in same page using jsp.
FTP File Upload in Java
how do i allow users to download a xls file in html?

Ads