How to upload and download file in hadoop?

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:
How to upload and download file in hadoop?
file upload download - Java Beginners
Advertisements
upload and download a file - Java Beginners
Upload and download file - JSP-Servlet
java code to upload and download a file - Java Beginners
code to upload and download a file - Java Magazine
File Upload And download JSP Urgent - JSP-Servlet
how to upload and download images in java?
upload ,download and update file document - JDBC
how to upload and download images using buttons in jsp?
how to download file
how to download a file from a folder??
How to upload file on FTP Server
how to upload a file - JSP-Servlet
How to upload file using JSP?
how to upload file using FTP in java
How to Increase Upload File Size Limit in php
ModuleNotFoundError: No module named 'hadoopy'
upload and download mp3
Struts File Upload and Save
Upload and Download multiple files
How I Upload File and Store that file name in Database using JSP
how to create a php script to download file
How to upload a large excel file - JSP-Servlet
How to upload and save a file in a folder - Java Beginners
upload and download video
upload and download files - JSP-Servlet
File Upload
File Upload in Struts.
Photo upload, Download
file download
how to upload a file of apk format in a folder from servlet
How to upload zip file from android to server programmatically?????
how do i upload a file by using servlet or jsp?
How i upload file and save that record in database using JSP?
how to upload multiple files in jsp and saving the path in database and the file in folder
File Download in jsp
file upload
jsp upload file to server
File Upload
Upload and Download in JSP - JSP-Servlet
Upload and Download Large files in jsp
How display a image on servlet from file upload - JSP-Servlet
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.
Struts upload file - Framework
How display a Image on servlet from file upload - JSP-Servlet
How to Upload a file directly to Oracle database using JSP or Servlets?
How display a image on servlet from file upload - JSP-Servlet

Ads