hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hemanth Yamijala <yhema...@gmail.com>
Subject Re: Hadoop fs -ls behaviour compared to native ls
Date Tue, 11 Sep 2012 14:48:59 GMT
Sure. Have filed https://issues.apache.org/jira/browse/HADOOP-8788 ..
Would be interested in what comes out in the discussion.

Thanks
hemanth

On Tue, Sep 11, 2012 at 7:10 PM, Robert Evans <evans@yahoo-inc.com> wrote:
> I think most of the rational is for backwards compatibility, but I could
> be wrong.  If you want to change it file a JIRA about it and we can
> discuss on the JIRA the merits of the change.
>
> --Bobby
>
> On 9/11/12 6:28 AM, "Hemanth Yamijala" <yhemanth@gmail.com> wrote:
>
>>Hi,
>>
>>hadoop fs -ls dirname
>>
>>lists entries like
>>
>>dirname/file1
>>dirname/file2
>>
>>i.e. dirname is repeated. And it takes a small second to realize that
>>there's actually no directory called dirname under dirname.
>>
>>Native ls doesn't repeat dirname when listing the output.
>>
>>I suppose the current behaviour is to handle globbing. So,
>>
>>hadoop fs -ls dirname*
>>
>>will list
>>
>>dirname1/file1
>>dirname2/file1
>>
>>which makes a little more sense. In contrast, native ls will list the
>>same as
>>
>>dirname1:
>>file1
>>
>>dirname2:
>>file1
>>
>>Is there a rationale to keep this as the listing behaviour in Hadoop ?
>

Mime
View raw message