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
3To 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