hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Hiller" <Benjamin.Hil...@urz.uni-heidelberg.de>
Subject Re: Reading File in constructor of Mapper
Date Sun, 25 Jul 2010 17:31:49 GMT
Thanks for the quick reply!
It seems to work, although I get an
java.io.FileNotFoundException: J:\OSMMap\Graphoutput (Zugriff verweigert)

which means "Access denied", when Job2 is trying to read the file Job1 
created. This is probably unrelated to hadoop and some problem with Windows, 
but nevertheless, any thoughts on that? (Job1 is done at that moment.)
Anyway, thanks for your help!


----- Original Message ----- 
From: "Owen O'Malley" <omalley@apache.org>
To: <mapreduce-user@hadoop.apache.org>
Sent: Sunday, July 25, 2010 5:47 PM
Subject: 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

View raw message