0
votes

I am a newbie to Hadoop, I am trying to learn it and came across 2 versions of InputFormat.

org/apache/hadoop/mapred/InputFormat

org/apache/hadoop/mapreduce/InputFormat

The explanation of both apis seems to be same but one is interface and other is a class. Can someone please help me why there are 2 APIs with same explanation in Hadoop?

1

1 Answers

1
votes

MapReduce has undergone a complete overhaul in hadoop-0.23 and it is called as MapReduce 2.0 (MRv2) or YARN.

org/apache/hadoop/mapred/InputFormat refers to hadoop MRV1

org/apache/hadoop/mapreduce/InputFormat refers to hadoop MRV2

Both these libraries refer to same functionality.

MRV2 is a rewrite of MRV1 for the compatibility of YARN architecture.