hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen O'Malley <omal...@apache.org>
Subject Re: supporting WordCount example for multiple level directories
Date Sun, 19 Oct 2008 03:28:35 GMT
On Oct 18, 2008, at 6:08 AM, Latha wrote:

> And it does not work for
> inputdir -> dir1 -> innerfile1
>           -> file1
>           -> file2
>           -> dir2

Typically you don't mix files and directories in the same level. The  
easiest way to get the desired result would be to use a pattern to  
list the files and directories to read:

inputdir/dir*,inputdir/file*

would glob out to dir1, dir2, file1, and file2. The files would just  
include themselves and the directories would expand one level.

-- Owen

Mime
View raw message