hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen O'Malley <omal...@apache.org>
Subject Re: Reflective instantiation of Mappers and Reducers
Date Fri, 02 Apr 2010 21:10:56 GMT

On Apr 2, 2010, at 12:05 PM, Kris Nuttycombe wrote:

> What I'm wondering is, is there any way to simply serialize a Mapper
> or Reducer object, and have the serialized instance copied, passed
> around and used everywhere instead of always having the Mapper and
> Reducer instantiated by reflection? This would greatly simplify
> library design in my case.

Currently the best you can do is to make your Mapper or Reduce  
implement Configurable and use the values out of the configuration.

Take a look at MAPREDUCE-1183. It should be exactly what you are  
asking for when it gets implemented.

-- Owen

View raw message