hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prasad GS <gsp200...@gmail.com>
Subject combiner/reducer context in java class
Date Tue, 06 Nov 2012 10:45:00 GMT
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
OutputCollector in the java class. Also I do not want to duplicate the same
code as combiner and reducer with only the OutputCollector changed.

Thanks,
Prasad

Mime
View raw message