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 Fri, 21 Nov 2008 14:08:08 GMT
Found out that output has been changed in 0.18

see HADOOP-2865 <https://issues.apache.org/jira/browse/HADOOP-2865>

Docs should be also then updated.

Alex

2008/11/21 Alexander Aristov <alexander.aristov@gmail.com>

> 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 <args>
> For a file returns stat on the file with the following format:
> filename <number of replicas> 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 <dir> 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

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