[ 
https://issues.apache.org/jira/browse/HADOOP-4917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12665920#action_12665920
 ] 

Jakob Homan commented on HADOOP-4917:
-------------------------------------

Linux doesn't justify across directories on recursive ls either:
{noformat}
./blahblah_hdfs:
total 8
drwxr-xr-x   2 hdfs search 4096 Jan 16 16:30 .
drwxrwxrwt  22 root root   4096 Jan 21 09:25 ..

./foofoo_jhoman:
total 8
drwxr-xr-x   2 jhoman users 4096 Jan 21 02:33 .
drwxrwxrwt  22 root   root  4096 Jan 21 09:25 ..

./zaza_rdqbipn:
total 8
drwxr-xr-x   2 rdqbipn users 4096 Jan 20 09:51 .
drwxrwxrwt  22 root    root  4096 Jan 21 09:25 ..

./zaza_tryesesb:
total 8
drwxr-xr-x   2 tryesesb users 4096 Jan 21 04:54 .
drwxrwxrwt  22 root     root  4096 Jan 21 09:25 ..
{noformat}
It could potentially be quite costly to gather the maximum spaces needed for 
justification across a very large namespace.  Perhaps it would be better to 
bring lsr closer in line with Unix, separating each listed directory with a 
header and allowing each directory to be justified relative to itself?

> fs -lsr does not align correctly when the username lengths are different
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-4917
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4917
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Jakob Homan
>
> For example,
> {noformat}
> bash-3.2$ ./bin/hadoop fs -lsr /user
> drwx------   - nicholas supergroup          0 2008-12-18 15:17 /user/nicholas
> -rw-r--r--   3 nn_sze supergroup       1366 2008-12-18 15:17 
> /user/nicholas/a.txt
> drwx------   - tsz      supergroup          0 2008-11-25 15:55 /user/tsz
> -rw-------   3 tsz supergroup       1366 2008-11-25 15:53 /user/tsz/r.txt
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to