combiner/reducer context in java class

2012-11-06 Thread Prasad GS
Hi, I'm setting my combiner and reducer to the same java class. Is there any API that could tell me the context in which the java class is running after the hadoop job is submitted to the cluster i.e whether the class is running as a combiner or a reducer. I need this information to change the

Re: combiner/reducer context in java class

2012-11-06 Thread Harsh J
Hi Prasad, My reply inline. On Tue, Nov 6, 2012 at 4:15 PM, Prasad GS gsp200...@gmail.com wrote: Hi, I'm setting my combiner and reducer to the same java class. Is there any API that could tell me the context in which the java class is running after the hadoop job is submitted to the

Re: combiner/reducer context in java class

2012-11-06 Thread Harsh J
Hi Bertrand, I believe the framework does give a few combiner statistics of its own (like in/out records and such). If your combiner class is separate, then instantiating counters in it with apt naming should address the need, since the class itself will be separately instantiated. Even if we