[
https://issues.apache.org/jira/browse/HADOOP-7713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14096371#comment-14096371
]
Allen Wittenauer commented on HADOOP-7713:
------------------------------------------
To me, count has always been in line with the Unix df, quota, iostat, zfs, etc
storage commands where it's just default behavior to print column names. (du
and ls are practically outliers!) The fact that it doesn't, I always marked up
as naivety in how the Unix-equivalent commands worked. So while I can
appreciate that it would be useful to have in 2.x, I just think long term it's
the wrong behavior not to put the columns up by default. Casual users will
still be annoyed/confused if we don't. Plus, as you said, it's a nice to have,
not a necessity in 2.x.
I definitely agree about the column names. Spaces = bad.
> dfs -count -q should label output column
> ----------------------------------------
>
> Key: HADOOP-7713
> URL: https://issues.apache.org/jira/browse/HADOOP-7713
> Project: Hadoop Common
> Issue Type: Improvement
> Reporter: Nigel Daley
> Assignee: Jonathan Allen
> Priority: Trivial
> Labels: newbie
> Attachments: HADOOP-7713.patch, HADOOP-7713.patch, HADOOP-7713.patch,
> HADOOP-7713.patch, HADOOP-7713.patch, HADOOP-7713.patch, HADOOP-7713.patch
>
>
> These commands should label the output columns:
> {code}
> hadoop dfs -count <dir>...<dir>
> hadoop dfs -count -q <dir>...<dir>
> {code}
> Current output of the 2nd command above:
> {code}
> % hadoop dfs -count -q /user/foo /tmp
> none inf 9569 9493 6372553322
> hdfs://nn1.bar.com/user/foo
> none inf 101 2689 209349812906
> hdfs://nn1.bar.com/tmp
> {code}
> It is not obvious what these columns mean.
--
This message was sent by Atlassian JIRA
(v6.2#6252)