M HYPE SPLASH
// updates

How to upload and download file in hadoop?

By Emily Wilson

I want to upload and download file in hadoop. and want to store file in server or multi-node cluster.

2 Answers

for putting files on hadoop use

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

and to get files from hadoop use

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

for more information see this

3

To copy from local to hdfs, use this command:

hadoop fs -copyFromLocal /temporaryfile.txt hdfs://

OR

hadoop fs -copyFromLocal /temporaryfile.txt hdfs://DFCMSUSEHDSL03.pbi.global.pvt:8020/sunil/temporaryfile.txt

OR

hadoop fs -put /temporaryfile.txt /sunil/temporaryfile.txt

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy