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:40:55 GMT
Nevermind, I passed only the path, without the actual file to the reader...

Ben

----- Original Message ----- 
From: "Benjamin Hiller" <Benjamin.Hiller@urz.uni-heidelberg.de>
To: <mapreduce-user@hadoop.apache.org>
Sent: Sunday, July 25, 2010 7:31 PM
Subject: Re: Reading File in constructor of Mapper


> 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!
>
> Ben
>
> ----- 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
>>
>
> 


Mime
View raw message