Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 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
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
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB