What is the best practice if I DO need to have some global variables
accessible to ALL mappers and ALL reducers which are distributed?  Is there
recommendations?

-- James

On 10/12/07, Owen O'Malley <[EMAIL PROTECTED]> wrote:
>
> 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