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

Switch to Threaded View
MapReduce >> mail # user >> Reading File in constructor of Mapper


Copy link to this message
-
Re: Reading File in constructor of Mapper
Usually, you'd do that kind of processing in the setConf method of the
Mapper (assuming you mark it Configurable). That will let you get the
configuration which can contain the location of the file to read.

-- Owen