TEZ-1664. Add checks to ensure that the client and AM are compatible. (hitesh)