Hakuna MapData! » hdfs
rss

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

| Posted in Doubts Resolving |

1

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):