Martijn Visser created FLINK-41567:
--------------------------------------
Summary: Use the public YARN API to read external resources
Key: FLINK-41567
URL: https://issues.apache.org/jira/browse/FLINK-41567
Project: Flink
Issue Type: Technical Debt
Components: Deployment / YARN
Reporter: Martijn Visser
{{TaskExecutorProcessSpecContainerResourcePriorityAdapter}} reads the external
resources of the maximum container resource with {{Resource#getResources}},
which YARN marks {{@InterfaceAudience.Private}}. Until FLINK-41393 this went
through reflection, so the dependency wasn't visible.
YARN has no public method to list all resource types, but
{{Resource#getResourceInformation(String)}} is public. We could look up each
configured external resource by name instead, and treat a
{{ResourceNotFoundException}} as the cluster not supporting that resource.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)