You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Edward J. Yoon (JIRA)" <ji...@apache.org> on 2008/04/10 13:04:06 UTC
[jira] Updated: (HADOOP-2865) FsShell.ls() should print file
attributes first then the path name.
[ https://issues.apache.org/jira/browse/HADOOP-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Edward J. Yoon updated HADOOP-2865:
-----------------------------------
Attachment: 2865_v01.patch
{code}
[udanax@a51066 hadoop]# bin/hadoop dfs -du /
Found 4 items
11358 hdfs://localhost:9000/LICENSE.txt
1366 hdfs://localhost:9000/README.txt
0 hdfs://localhost:9000/home
0 hdfs://localhost:9000/user
[udanax@a51066 hadoop]# bin/hadoop dfs -ls
Found 5 items
1 11358 2008-04-10 18:27 -rw-r--r-- root supergroup /user/root/LICENSE.txt
1 101 2008-04-10 18:27 -rw-r--r-- root supergroup /user/root/NOTICE.txt
1 1366 2008-04-10 18:26 -rw-r--r-- root supergroup /user/root/README.txt
1 831954 2008-04-10 18:41 -rw-r--r-- root supergroup /user/root/hadoop-0.18.0-dev-test.jar
0 2008-04-10 18:26 drwxr-xr-x root supergroup /user/root/logs
[udanax@a51066 hadoop]#
{code}
> FsShell.ls() should print file attributes first then the path name.
> -------------------------------------------------------------------
>
> Key: HADOOP-2865
> URL: https://issues.apache.org/jira/browse/HADOOP-2865
> Project: Hadoop Core
> Issue Type: Improvement
> Affects Versions: 0.15.0
> Reporter: Konstantin Shvachko
> Assignee: Edward J. Yoon
> Attachments: 2865_v01.patch
>
>
> When we had a handful of attributes this looked OK. But after the permissions the ls output is just unreadable.
> This how the output looks now:
> {code}
> /CHANGES.txt <r 2> 174779 2008-01-29 10:00 rw-r--r-- shv supergroup
> /LICENSE.txt <r 2> 11358 2008-01-28 17:27 rw-r--r-- shv supergroup
> /NOTICE.txt <r 2> 101 2008-01-29 12:06 rw-r--r-- shv supergroup
> /Work <dir> 2008-01-23 17:43 rwxr-xr-x shv supergroup
> /Work/hadoop-data <dir> 2008-01-23 17:43 rwxr-xr-x shv supergroup
> {code}
> This is how it should look:
> {code}
> 2 174779 2008-01-29 10:00 -rw-r--r-- shv supergroup /CHANGES.txt
> 2 11358 2008-01-28 17:27 -rw-r--r-- shv supergroup /LICENSE.txt
> 2 101 2008-01-29 12:06 -rw-r--r-- shv supergroup /NOTICE.txt
> 2008-01-23 17:43 drwxr-xr-x shv supergroup /Work
> 2008-01-23 17:43 drwxr-xr-x shv supergroup /Work/hadoop-data
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.