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
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
Ads