Hadoop 2.2 YARN API migration.
Add optional Hadoop 2 settings in sbt build.