Re: Initialize Map class

2010-10-18 Thread Martin Kuhn
I would want to initialize a Map class with some parameters. How do I do that ? http://hadoop.apache.org/mapreduce/docs/current/api/org/apache/hadoop/mapreduce/Mapper.html

Re: Initialize Map class

2010-10-17 Thread Yin Lou
You can use this, public class WordCount { public static class Map extends MapReduceBase implements Mapper { public void configure(JobConf job) { // put your initialization here } private final static IntWritable one = new IntWritable(1);

Re: Initialize Map class

2010-10-17 Thread web service
Ok. a bit confused...Noob days. Did you mean using this method call - public *JobConf*(Configuration conf, Class exampleClass) to initialize t

Re: Initialize Map class

2010-10-17 Thread Owen O'Malley
On Oct 17, 2010, at 11:31 AM, web service wrote: I would want to initialize a Map class with some parameters. How do I do that ? The objects that define a MapReduce job are all configured by the job's configuration, which is a string to string map. If your Mapper class implements Configu

Initialize Map class

2010-10-17 Thread web service
I would want to initialize a Map class with some parameters. How do I do that ? -Muncher