Pull in YARN 2.2 code from Apache latest.
Backport to Scala 2.9.