hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Dechoux <decho...@gmail.com>
Subject Re: What is the correct way to get a string back from a mapper or reducer
Date Thu, 03 Jul 2014 05:43:00 GMT
Configuration is from an architecture point of view immutable once the job
is started even though the API does not reflect that explicitly.
I would say in a record. But the question is : what do you want to achieve?

Regards

Bertrand Dechoux


On Thu, Jul 3, 2014 at 7:37 AM, Chris MacKenzie <
studio@chrismackenziephotography.co.uk> wrote:

> Hi,
>
> I have the following code and am using hadoop 2.4:
>
> In my driver:
>         Configuration conf = new Configuration();
>         conf.set("sub", "help");
>         Š..
>         String s = conf.get("sub²);
>
> In my reducer:
>         Configuration conf = context.getConfiguration();
>         conf.set("sub", "Test²);
>
> When I test the value in the driver, it isn¹t updated following the reduce
>
>
> Best,
>
> Chris MacKenzie
>  <http://www.chrismackenziephotography.co.uk/>
> <http://www.chrismackenziephotography.co.uk/>Expert>
>
>
>

Mime
View raw message