passing configuration parameter to comparator

2013-12-02 Thread Sergey Gerasimov
Hello, What is the best way to pass job configuration parameter to class like GroupingComparator which is instantiated by hadoop. I know there is setup method in map class and probably I can initialize some static variable in setup and use it in GroupingComparator, not sure that is correct (not

Re: passing configuration parameter to comparator

2013-12-02 Thread Harsh J
The comparators are also initialised via the ReflectionUtils code, so they do try to pass configuration onto the instantiated object if the class implements the org.apache.hadoop.conf.Configurable interface or extends the org.apache.hadoop.conf.Configured class (which implements the interface for y