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
