0 votes
in Big Data | Hadoop by

What are the core methods of a Reducer? 

1 Answer

0 votes
by

The 3 core methods of a reducer are –

 

1)setup () – This method of the reducer is used for configuring various parameters like the input data size, distributed cache, heap size, etc.

 

Function Definition- public void setup (context)

 

2)reduce () it is heart of the reducer which is called once per key with the associated reduce task.

 

Function Definition -public void reduce (Key,Value,context)

 

3)cleanup () - This method is called only once at the end of reduce task for clearing all the temporary files.

 

Function Definition -public void cleanup (context)

 

Related questions

0 votes
asked Jan 7, 2020 in Big Data | Hadoop by sharadyadav1986
0 votes
asked Jan 7, 2020 in Big Data | Hadoop by sharadyadav1986
...