Latest News

Friday, October 12, 2018

Core methods of Reducer

The three core methods of a Reducer are:

  1. setup(): this method is used for configuring various parameters like input data size, distributed cache.
    public void setup (context)
  2. reduce(): heart of the reducer always called once per key with the associated reduced task
    public void reduce(Key, Value, context)
  3. cleanup(): this method is called to clean temporary files, only once at the end of the task
    public void cleanup (context)
  • Google+
  • Pinterest
« PREV
NEXT »

No comments

Post a Comment