hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Rosenstrauch <dar...@darose.net>
Subject Re: Passing an Object to All Reducers
Date Fri, 06 May 2011 17:56:05 GMT
On 05/06/2011 01:12 PM, Geoffry Roberts wrote:
> All,
>
> I need for each one of my reducers to have read access to a certain object
> or a clone thereof.  I can instantiate this object a start up.  How can I
> give my reducers a copy?

Serialize it to a string, set it as a configuration setting on the job's 
configuration, then have each reducer read it from out of the config 
setting, and deserialize the object.

HTH,

DR

Mime
View raw message