|
Answer» Name and syntax for core methods of Reducer? Below are the three core methods of reducer which is given below (1)SETUP():-We used this METHOD for configure various parameter like INPUT data size and distributed cache. And syntax is given below. public void setup (context)
(2)reduce():-HEART of the Reducer is always CALLED once per key with the associated reduced task. public void reduce(Key, Value, context)
(3)cleanup():-We used this method to clean the temporary files once at the end of the task public void cleanup (context)
|