YARN-9205. When using custom resource type, application will fail to run due to the CapacityScheduler throws InvalidResourceRequestException(GREATER_THEN_MAX_ALLOCATION). Contributed by Zhankun Tang.

(cherry picked from commit bc6374f282dbff3b9ed91fb5d7825d57e6720f5e)
4 files changed