Below listed are the main components of MapReduce:
Main Class - The main class is specifically used for providing the main parameters for the job like providing the different data files for sorting.
Mapper Class - The mapper class is used for Mapping which is mainly done in this class. The map method is executed.
Reducer Class - All the data that is aggregated is put forward in the reducer class. Data is reduced in this class.