hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Aristov" <alexander.aris...@gmail.com>
Subject Re: ls command output format
Date Tue, 25 Nov 2008 05:43:41 GMT
Thanks for creating it. I haven't tried Jira yet and didn't know how to do
this.
Alex

2008/11/25 Tsz Wo Sze <szetszwo@yahoo.com>

> Filed HADOOP-4719 for this.
>
> Nicholas Sze.
>
>
>
>
> ----- Original Message ----
> > From: "Tsz Wo (Nicholas), Sze" <s29752-hadoopuser@yahoo.com>
> > To: core-user@hadoop.apache.org
> > Sent: Friday, November 21, 2008 7:54:27 AM
> > Subject: Re: ls command output format
> >
> > Hi Alex,
> >
> > Yes, the doc about ls is out-dated.  Thanks for pointing this out.  Would
> you
> > mind to file a JIRA?
> >
> > Nicholas Sze
> >
> >
> >
> > ----- Original Message ----
> > > From: Alexander Aristov
> > > To: core-user@hadoop.apache.org
> > > Sent: Friday, November 21, 2008 6:08:08 AM
> > > Subject: Re: ls command output format
> > >
> > > Found out that output has been changed in 0.18
> > >
> > > see HADOOP-2865
> > >
> > > Docs should be also then updated.
> > >
> > > Alex
> > >
> > > 2008/11/21 Alexander Aristov
> > >
> > > > Hello
> > > >
> > > > I wonder if hadoop shell command ls has changed output format
> > > >
> > > > Trying hadoop-0.18.2 I got next output
> > > >
> > > > [root]# hadoop fs -ls /
> > > > Found 2 items
> > > > drwxr-xr-x   - root supergroup          0 2008-11-21 08:08 /mnt
> > > > drwxr-xr-x   - root supergroup          0 2008-11-21 08:19 /repos
> > > >
> > > >
> > > > Though according to docs it should be that file name goes first.
> > > > http://hadoop.apache.org/core/docs/r0.18.2/hdfs_shell.html#ls
> > > >
> > > > Usage: hadoop fs -ls
> > > > For a file returns stat on the file with the following format:
> > > > filename filesize modification_date modification_time
> > > > permissions userid groupid
> > > > For a directory it returns list of its direct children as in unix. A
> > > > directory is listed as:
> > > > dirname
> > modification_time modification_time permissions userid
> > > > groupid
> > > > Example:
> > > > hadoop fs -ls /user/hadoop/file1 /user/hadoop/file2 hdfs://
> > > > nn.example.com/user/hadoop/dir1 /nonexistentfile
> > > > Exit Code:
> > > >  Returns 0 on success and -1 on error.
> > > >
> > > >
> > > > I wouldn't notice the issue if I haven't had scripts which rely on
> the
> > > > formatting.
> > > >
> > > > --
> > > > Best Regards
> > > > Alexander Aristov
> > > >
> > >
> > >
> > >
> > > --
> > > Best Regards
> > > Alexander Aristov
>
>


-- 
Best Regards
Alexander Aristov

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