hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Traverso" <mtrave...@gmail.com>
Subject Re: Difference between put and copyFromLocal?
Date Thu, 07 Feb 2008 19:42:51 GMT
They are equivalent. From the source code:

      if ("-put".equals(cmd) || "-copyFromLocal".equals(cmd)) {
        copyFromLocal(new Path(argv[i++]), argv[i++]);


      if ("-get".equals(cmd) || "-copyToLocal".equals(cmd)) {
        copyToLocal(argv, i);

Martin


On Feb 7, 2008 11:34 AM, Ben Kucinich <benkucinich@gmail.com> wrote:

> In bin/hadoop dfs command I find these two options which seems similar to
> me.
>
>           [-put <localsrc> <dst>]
>           [-copyFromLocal <localsrc> <dst>]
>
> Is there any difference between -put command and -copyFromLocal command?
>
> Similarly what is the difference between -get command and -copyToLocal?
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message