0 votes
in Hadoop by
How is identity mapper different from chain mapper?

1 Answer

0 votes
by

Identity Mapper

Chain Mapper

This is the default mapper that is chosen when no mapper is specified in the MapReduce driver class.

It implements identity function, which directly writes all its key-value pairs into output.

It is defined in old MapReduce API (MR1) in: org.apache.Hadoop.mapred.lib.package

This class is used to run multiple mappers in a single map task.

The output of the first mapper becomes the input to the second mapper, second to third and so on.

It is defined in: org.apache.Hadoop.mapreduce.lib.chain.ChainMapperpackage

Related questions

0 votes
asked Jun 20, 2023 in HDFS by Robin
0 votes
0 votes
asked Oct 23, 2022 in Hadoop by DavidAnderson
0 votes
asked Sep 11, 2021 in AWS Access Management by SakshiSharma
...