Joel
Joel

Reputation: 1690

Hadoop - Recursive copy/put from local to HDFS

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.

Upvotes: 3

Views: 17479

Answers (1)

Rachit Ahuja
Rachit Ahuja

Reputation: 369

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/

Upvotes: 7

Related Questions