Yarn 2.2 API migration for YarnAllocationHandler.
Yarn 2.2 API migration for ApplicationMaster.
Yarn 2.2 API migration for yarn.Client.
Yarn 2.2 API migration for yarn.WorkerRunnable.