I just tried the command right now on a directory, and it says:

get: No such file or directory

but when i do -ls the directory is there, and i get a listing of files
underneath that directory.

Kris.

On Sat, Sep 5, 2009 at 9:26 AM, Arvind Sharma <[email protected]> wrote:

> They do work on directories as well...
>
> Arvind
>
>
>
>
> ________________________________
> From: Kris Jirapinyo <[email protected]>
> To: [email protected]
> 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 <[email protected]> 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 <[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