By Alex Holmes, author of Hadoop in Practice, Second Edition
YARN was created so that Hadoop clusters could run any type of work. This meant MapReduce had to become a YARN application and required the Hadoop developers to rewrite key parts of MapReduce. This article will demystify how MapReduce works in Hadoop 2.

YARN and how MapReduce works in Hadoop (PDF)