hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: Accessing static variables in map function
Date Thu, 09 Jul 2009 20:07:06 GMT
Use the configuration object.

Remember that the outer class is replicated all across the known universe.
Your command line arguments only exist on your original machine.

On Thu, Jul 9, 2009 at 11:35 AM, <smarthrish@yahoo.co.in> wrote:

>
> Hey Ram.
> The problem is i initialize these variables in the run function after
>  receiving the cmd line arguments .
> I want to access the same vars  in the mpa function.
> Is there a diff way other than passing the variables through a Conf object
>  ?
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message