What is Identity Mapper and Chain Mapper?

Sharad Jaiswal
Sharad Jaiswal

Posted On: Mar 02, 2020

 

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 the Hadoop. When no mapper class is specified in the MR Driver class, the Identity Mapper class is invoked automatically when a Map-Reduce job is assigned.

The ChainMapper is also one of the pre-defined mapper class that allows using multiple mapper class within a single Map task. All the mappers are run in a chain fashioned, 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.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Mapreduce Interview Questions

    What is Hadoop Map Reduce?

    Map Reduce is the core of Hadoop. It is one of the programming paradigms that acknowledge into consideration enormous a..

    Mapreduce Interview Questions

    What is the need of Map Reduce?

    Map Reduce is information handling paradigms in itself. This was one of its kind information handlings and has been tra..

    Mapreduce Interview Questions

    Clarify what is shuffling in Map Reduce?

    The procedure by which the framework lays out the sort and transfers the map outputs to the reducer as sources of inform..