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 "Konstantin Shvachko (JIRA)" <ji...@apache.org> on 2008/02/21 03:09:43 UTC

[jira] Created: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

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
             Fix For: 0.17.0


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.


[jira] Updated: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konstantin Shvachko updated HADOOP-2865:
----------------------------------------

      Resolution: Fixed
    Hadoop Flags: [Incompatible change, Reviewed]  (was: [Incompatible change])
          Status: Resolved  (was: Patch Available)

I just committed this. Thank you Edward.

> 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
>             Fix For: 0.18.0
>
>         Attachments: 2865_v01.patch, 2865_v02.patch, 2865_v03.patch, 2865_v04.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.


[jira] Updated: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ 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_v03.patch

when a lot of files are exist, v02.patch seems problematic.  

> 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
>             Fix For: 0.18.0
>
>         Attachments: 2865_v01.patch, 2865_v02.patch, 2865_v03.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.


[jira] Commented: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589274#action_12589274 ] 

Konstantin Shvachko commented on HADOOP-2865:
---------------------------------------------

In your code could you please set initial values to
{code}
int maxReplication = 3, maxLen = 10, maxOwner = 0,maxGroup = 0;
{code}
This should work for most files.
You should also resubmit the patch.

> 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
>             Fix For: 0.18.0
>
>         Attachments: 2865_v01.patch, 2865_v02.patch, 2865_v03.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.


[jira] Updated: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ 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_v04.patch

Thank you for your review, Fixed them.

> 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
>             Fix For: 0.18.0
>
>         Attachments: 2865_v01.patch, 2865_v02.patch, 2865_v03.patch, 2865_v04.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.


[jira] Updated: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HADOOP-2865:
-----------------------------------

    Status: Patch Available  (was: Open)

Submitting.

> 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.


[jira] Assigned: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon reassigned HADOOP-2865:
--------------------------------------

    Assignee: Edward J. Yoon

> 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
>
> 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.


[jira] Updated: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Robert Chansler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Chansler updated HADOOP-2865:
------------------------------------

    Release Note: Changed the output of the "fs -ls" command to more closely match familiar Linux format. Additional changes were made by HADOOP-3459. Applications that parse the command output should be reviewed.
    Hadoop Flags: [Incompatible change, Reviewed]  (was: [Reviewed, Incompatible change])

> 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
>             Fix For: 0.18.0
>
>         Attachments: 2865_v01.patch, 2865_v02.patch, 2865_v03.patch, 2865_v04.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.


[jira] Commented: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588832#action_12588832 ] 

Konstantin Shvachko commented on HADOOP-2865:
---------------------------------------------

+0.7
I think this is good as a first step in improving the formatting of ls.
There are 3 cases when formatting brakes
# when file size is larger than 7 digits
# when user names substantially differ in length
# when group names differ

{code}
2	168	2007-10-09 20:21	-rw-rw-rw-	shv	supergroup	/README.txt
	0	2008-04-09 18:47	drwxr-xr-x	administrator	supergroup	/conf
3	12345678	2008-04-09 18:46	-rw-r--r--	shv	supergroup	/conf/.svn/README.txt
3	1234567	2008-04-09 18:47	-rw-r--r--	shv	supergroup	/conf/.svn/dir-prop-base
3	90	2008-04-09 18:46	-rw-r--r--	shv	user	/conf/.svn/dir-wcprops
3	9012345	2008-04-09 18:47	-rw-r--r--	shv	supergroup	/conf/.svn/dir-props
{code}
The first one is going to be very common, since we expect large files and design for it. And we should fix it.
The best way would be to convert bytes into MB, GB, TB, or even PB if needed, but at least using "%-XXd" as in DU would be better.
This should also produce right aligned column.

Dynamically calculating column widths is probably the next logical improvement step, which belongs to a different issue.

We should mark this issue as an incomatible change.

> 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
>             Fix For: 0.18.0
>
>         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.


[jira] Updated: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HADOOP-2865:
-----------------------------------

    Status: Patch Available  (was: Open)

Resubmitting.

> 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
>             Fix For: 0.18.0
>
>         Attachments: 2865_v01.patch, 2865_v02.patch, 2865_v03.patch, 2865_v04.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.


[jira] Updated: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HADOOP-2865:
-----------------------------------

    Hadoop Flags: [Incompatible change]

Checking incompatible change.

> 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
>             Fix For: 0.18.0
>
>         Attachments: 2865_v01.patch, 2865_v02.patch, 2865_v03.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.


[jira] Updated: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ 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_v02.patch

This v02.patch include the AutoFit (by using in-memory) as describe below.
{code}
[root@udanax hadoop]# bin/hadoop dfs -du
Found 2 items
11358  hdfs://localhost:9000/user/root/LICENSE.txt
1366   hdfs://localhost:9000/user/root/udanax
[root@udanax hadoop]# bin/hadoop dfs -ls
Found 2 items
1  11358  2008-04-15 10:53  -rw-r--r--  udanax  supergroup  /user/root/LICENSE.txt
   0      2008-04-15 12:54  drwxr-xr-x  root    supergroup  /user/root/udanax
[root@udanax hadoop]# 
{code}

BTW, what does Incompatible change" mean? and What should i do?


> 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
>             Fix For: 0.18.0
>
>         Attachments: 2865_v01.patch, 2865_v02.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.


[jira] Commented: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589987#action_12589987 ] 

Hudson commented on HADOOP-2865:
--------------------------------

Integrated in Hadoop-trunk #463 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/463/])

> 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
>             Fix For: 0.18.0
>
>         Attachments: 2865_v01.patch, 2865_v02.patch, 2865_v03.patch, 2865_v04.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.


[jira] Updated: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Robert Chansler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Chansler updated HADOOP-2865:
------------------------------------

    Fix Version/s:     (was: 0.17.0)

> 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
>
> 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.


[jira] Updated: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Commented: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572681#action_12572681 ] 

Tsz Wo (Nicholas), SZE commented on HADOOP-2865:
------------------------------------------------

- Similar problems exist on du, e.g.
{code}
bash-3.2$ ./bin/hadoop fs -du /    
Found 3 items
hdfs://host:9000/a.txt  159
hdfs://host:9000/build.xml      44198
hdfs://host:9000/user   318
{code}

- The column for the file size should be wider (at least 15 digits, probably 18 digits) and right aligned.

> 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
>             Fix For: 0.17.0
>
>
> 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.


[jira] Commented: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589400#action_12589400 ] 

Hadoop QA commented on HADOOP-2865:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12380230/2865_v04.patch
against trunk revision 645773.

    @author +1.  The patch does not contain any @author tags.

    tests included -1.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no tests are needed for this patch.

    javadoc +1.  The javadoc tool did not generate any warning messages.

    javac +1.  The applied patch does not generate any new javac compiler warnings.

    release audit +1.  The applied patch does not generate any new release audit warnings.

    findbugs +1.  The patch does not introduce any new Findbugs warnings.

    core tests +1.  The patch passed core unit tests.

    contrib tests +1.  The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2246/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2246/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2246/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2246/console

This message is automatically generated.

> 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
>             Fix For: 0.18.0
>
>         Attachments: 2865_v01.patch, 2865_v02.patch, 2865_v03.patch, 2865_v04.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.


[jira] Commented: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Koji Noguchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572209#action_12572209 ] 

Koji Noguchi commented on HADOOP-2865:
--------------------------------------

I'm not against this, but just a note that some users have scripts written that depend on the order of the '-ls' result.
Some even failed when we just added a timestamp...

> 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
>             Fix For: 0.17.0
>
>
> 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.


[jira] Commented: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587586#action_12587586 ] 

Edward J. Yoon commented on HADOOP-2865:
----------------------------------------

Doesn't it need a test case?
If so, i'll submit this patch.

> 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.


[jira] Updated: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HADOOP-2865:
-----------------------------------

    Fix Version/s: 0.18.0

> 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
>             Fix For: 0.18.0
>
>         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.


[jira] Updated: (HADOOP-2865) FsShell.ls() should print file attributes first then the path name.

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HADOOP-2865:
-----------------------------------

    Status: Open  (was: Patch Available)

> 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
>             Fix For: 0.18.0
>
>         Attachments: 2865_v01.patch, 2865_v02.patch, 2865_v03.patch, 2865_v04.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.