Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # user >> Reading files from a directory


Copy link to this message
-
Re: Reading files from a directory
I was actually looking for an example to do it in the java code. But I
think I've found a way to do it by iterating over all the files using
globStatus() method.

On Mon, Nov 12, 2012 at 5:50 PM, yinghua hu <[EMAIL PROTECTED]> wrote:

> Hi, Mohit
>
> You can input everything in a directory. See the step 12 in this link.
>
> http://raseshmori.wordpress.com/
>
>
> On Mon, Nov 12, 2012 at 5:40 PM, Mohit Anchlia <[EMAIL PROTECTED]>wrote:
>
>> Using Java dfs api is it possible to read all the files in a directory?
>> Or do I need to list all the files in the directory and then read it?
>
>
>
>
> --
> Regards,
>
> Yinghua
>