> 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>

> 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 <> [EMAIL PROTECTED]> 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>>>>

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 xfirst one...

2013/5/7 Winston Lin <[EMAIL PROTECTED]>:> 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 <[EMAIL PROTECTED]> 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>> <[EMAIL PROTECTED]> 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>>>>>

It sounds like you're interested in something equivalent to the Unix findcommand for HDFS. HADOOP-8989 tracks adding this feature. There is apatch available, but it's still under review, so the feature isn'tavailable in a release yet.

> hadoop dfs -ls|grep "date you want to see">> you can use sort on that what ever you like ..>> *Thanks & Regards *>> ∞> Shashwat Shriparv>>>> On Wed, May 8, 2013 at 6:19 AM, Winston Lin <[EMAIL PROTECTED]> 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>>>>

+

Chris Nauroth 2013-05-08, 16:47

NEW: Monitor These Apps!

All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by Sematext