added support for Hadoop 2.2 and YARN