Hadoop 2.2 API migration in YarnAllocationHandler.