hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Zhang <zjf...@gmail.com>
Subject Re: Copying directories out of HDFS
Date Sat, 05 Sep 2009 04:49:02 GMT
Hi Arvind,

You miss the fs

The command should be:

bin/hadoop fs -get /path/to/dfs/dir  /path/to/local/dir
or
bin/hadoop fs -copyToLocal /path/to/dfs/dir  /path/to/local/dir

The is the link of shell command for your reference.
http://hadoop.apache.org/common/docs/r0.20.0/hdfs_shell.html



On Fri, Sep 4, 2009 at 9:09 PM, Arvind Sharma <arvind321@yahoo.com> wrote:

> You mean programmatically or command line ?
>
> Command line :
>
> bin/hadoop -get /path/to/dfs/dir  /path/to/local/dir
>
> Arvind
>
>
>
>
> ________________________________
> From: Kris Jirapinyo <kjirapinyo@biz360.com>
> To: common-user <common-user@hadoop.apache.org>
> Sent: Friday, September 4, 2009 5:15:00 PM
> Subject: Copying directories out of HDFS
>
> Hi all,
>    What is the best way to copy directories from HDFS to local disk in
> 0.19.1?
>
> Thanks,
> Kris.
>
>
>
>
>

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