hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Marc Spaggiari <jean-m...@spaggiari.org>
Subject Re: get recent changed files in hadoop
Date Wed, 08 May 2013 03:58:59 GMT
You can still parse the hadoop ls ouput with bash and sort it (revert,
cut, sort, etc.), but that will read all the entries, just just the x
first one...

2013/5/7 Winston  Lin <winston800@gmail.com>:
> look like we cannot even sort the output of ls by date with fs command?
>
> In *ux system, we can do ls -t ...to  sort by modification time, newest
> first
>
> Winston
>
>
>
>
> On Wed, May 8, 2013 at 1:47 PM, Mohammad Tariq <dontariq@gmail.com> wrote:
>>
>> I don't think any such thing is available OOTB.
>>
>> Warm Regards,
>> Tariq
>> https://mtariq.jux.com/
>> cloudfront.blogspot.com
>>
>>
>> On Wed, May 8, 2013 at 8:51 AM, Rahul Bhattacharjee
>> <rahul.rec.dgp@gmail.com> wrote:
>>>
>>> Is any such option available in other posix shells?
>>>
>>>
>>> On Wednesday, May 8, 2013, Winston Lin wrote:
>>>>
>>>> Any idea to get recent changed file in hadoop? e.g. files created
>>>> yesterday?
>>>>
>>>> fs -ls will only give us all the files.
>>>>
>>>> Thanks
>>>> Winston
>>>
>>>
>>>
>>> --
>>> Sent from Gmail Mobile
>>
>>
>

Mime
View raw message