Re: What is the correct way to get a string back from a mapper or reducer

2014-07-03 Thread Bertrand Dechoux
The stackoverflow question doesn't add any useful information. Like I said you can emit the string inside a record. Or if you really want to handle lots of complexity, write it yourself within a file or a datastore from the reducer. But you will then have to consider performance issues and be

What is the correct way to get a string back from a mapper or reducer

2014-07-02 Thread Chris MacKenzie
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,

Re: What is the correct way to get a string back from a mapper or reducer

2014-07-02 Thread Bertrand Dechoux
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