[ 
https://issues.apache.org/jira/browse/YARN-5587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15606760#comment-15606760
 ] 

Arun Suresh commented on YARN-5587:
-----------------------------------

Hmmm... Actually, I think we have to deal with one other issue in the 
{{AMRMClient}}:
Once a Container is returned by the RM, the AMRMClient uses the 
{{getMatchingRequests()}} api to retrieve matching ContainerRequests and remove 
it.

This implies that we need to have an equivalence relationship from a *Resource* 
to a *ProfileCapability*, else the matching won't work. Thus I think we might 
have to normalize all "named" ProfileCapabilities to a either a Resource or a 
NONE ProfileCapability (with the override being the complete resource)

Either that, or we have to ensure that these new requests are tagged with 
unique 'allocationRequestIds', for which we already have a separate 
{{getMatchingRequests}} that matches ContainerRequests to Containers only based 
on the allocationRequestId.



> Add support for resource profiles
> ---------------------------------
>
>                 Key: YARN-5587
>                 URL: https://issues.apache.org/jira/browse/YARN-5587
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: nodemanager, resourcemanager
>            Reporter: Varun Vasudev
>            Assignee: Varun Vasudev
>         Attachments: YARN-5587-YARN-3926.001.patch, 
> YARN-5587-YARN-3926.002.patch, YARN-5587-YARN-3926.003.patch, 
> YARN-5587-YARN-3926.004.patch, YARN-5587-YARN-3926.005.patch
>
>
> Add support for resource profiles on the RM side to allow users to use 
> shorthands to specify resource requirements.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to