On Oct 11, 2007, at 9:54 PM, James Yu wrote:

I put all user global variables in a class I called MyGlobals.

Since map/reduce is distributed in general, you should be careful of using global variables. I find it to be better practice to keep all of the state variables in either the Mapper or Reducer itself to remind myself that it is _not_ shared between Mappers, Reducers, and the launching program.

-- Owen

Reply via email to