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
Harsh J 2012-11-13, 12:54
Yes you need to list all files, or the files you need, and then read
them in serial or parallel order (per your preference). A "directory"
can't be read on its own.

On Tue, Nov 13, 2012 at 7:10 AM, 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?

--
Harsh J