Hakuna MapData! » hdfs

Why put is better than copyFromLocal when coping files to HDFS?

| Posted in Doubts Resolving |


When you type hadoop fs, you may find following options quite similar:

akawa@hadoop:~$ hadoop fs
Usage: hadoop fs [generic options]
       [-copyFromLocal < localsrc > ... < dst >]
       [-put < localsrc > ... < dst >]

HDFS Shell Guide

Let’s have a quick look at the offical HDFS Shell Guide to find out the differences between them (descriptions bellow are slightly edited to make them more compact):