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 <[email protected]> wrote:

> You mean programmatically or command line ?
>
> Command line :
>
> bin/hadoop -get /path/to/dfs/dir  /path/to/local/dir
>
> Arvind
>
>
>
>
> ________________________________
> From: Kris Jirapinyo <[email protected]>
> To: common-user <[email protected]>
> 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.
>
>
>
>
>

Reply via email to