hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohit Anchlia <mohitanch...@gmail.com>
Subject Re: Reading files from a directory
Date Tue, 13 Nov 2012 02:00:52 GMT
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 <yinghua.hu@gmail.com> 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 <mohitanchlia@gmail.com>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
>

Mime
View raw message