They do work on directories as well... 

Arvind




________________________________
From: Kris Jirapinyo <kris.jirapi...@biz360.com>
To: common-user@hadoop.apache.org
Sent: Friday, September 4, 2009 11:41:22 PM
Subject: Re: Copying directories out of HDFS

I thought -get and -copyToLocal don't work on directories, only on single
files.

On Fri, Sep 4, 2009 at 9:49 PM, Jeff Zhang <zjf...@gmail.com> wrote:

> 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 <arvind...@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 <kjirapi...@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.
> >
> >
> >
> >
> >
>



      

Reply via email to