[
https://issues.apache.org/jira/browse/HADOOP-10971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14546802#comment-14546802
]
Akira AJISAKA commented on HADOOP-10971:
----------------------------------------
Thanks [~sekikn] for updating the patch. One comment:
bq. made -C to overrule -u, because timestamp isn't displayed when -C is
specified
I don't think -u should be no-op when -C is specified. -u is not only used for
displaying modification time but also used for sorting outputs by modification
time when -t is specified at the same time.
> Flag to make `hadoop fs -ls` print filenames only
> -------------------------------------------------
>
> Key: HADOOP-10971
> URL: https://issues.apache.org/jira/browse/HADOOP-10971
> Project: Hadoop Common
> Issue Type: Improvement
> Components: fs
> Affects Versions: 2.3.0
> Reporter: Ryan Williams
> Assignee: Kengo Seki
> Labels: BB2015-05-RFC
> Attachments: HADOOP-10971.001.patch, HADOOP-10971.002.patch,
> HADOOP-10971.003.patch, HADOOP-10971.004.patch
>
>
> It would be useful to have a flag that made {{hadoop fs -ls}} only print
> filenames, instead of full {{stat}} info. The "{{-C}}" flag from GNU {{ls}}
> is the closest analog to this behavior that I've found, so I propose that as
> the flag.
> Per [this stackoverflow answer|http://stackoverflow.com/a/21574829], I've
> reluctantly added a {{hadoop-ls-C}} wrapper that expands to {{hadoop fs -ls
> "$@" | sed 1d | perl -wlne'print +(split " ",$_,8)\[7\]'}} to a few projects
> I've worked on, and it would obviously be nice to have hadoop save me (and
> others) from such hackery.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)