Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-2865

FsShell.ls() should print file attributes first then the path name.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.15.0
    • 0.18.0
    • None
    • None
    • Incompatible change, Reviewed
    • Hide
      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.
      Show
      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.

    Description

      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:

      /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
      

      This is how it should look:

      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
      

      Attachments

        1. 2865_v01.patch
          2 kB
          Edward J. Yoon
        2. 2865_v02.patch
          4 kB
          Edward J. Yoon
        3. 2865_v03.patch
          4 kB
          Edward J. Yoon
        4. 2865_v04.patch
          3 kB
          Edward J. Yoon

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            udanax Edward J. Yoon
            shv Konstantin Shvachko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment