2
votes

I can use hadoop fs -put local hdfs to copy from local to HDFS. Is there a way to do recursive put? Tried -put -r and it doesnt work.

1
You can put a directory. There is no option like -r. Simply mention the directory. - Amal G Jose
@AmalGJose, that works! - Joel

1 Answers

7
votes

Try this command

hadoop fs -copyFromLocal docs/* /input/

Where /input/ is the path of the HDFS location where you want to store.

hadoop fs -copyFromLocal local/* /Hdfs/