Posted On: Nov 17, 2022
The Identity Mapper is one of the pre-defined mapper class that can be used with any key/value pairs of data. It is a generic class and also the default mapper class provided by Hadoop. When no mapper class is specified in the MR Driver class, the Identity Mapper class is invoked automatically when a MapReduce job is assigned.
The ChainMapper is also one of the pre-defined mapper classes that allows using multiple mapper classes within a single Map task. All the mappers are run in a chain fashion, that is the output of the first mapper becomes the input of the second mapper and so on. The output of the last mapper class is written to the intermediate files.
Never Miss an Articles from us.