Subru Krishnan commented on YARN-3116:

[~kkaranasos], thanks for taking at look at this JIRA. We felt 
_ContainerTokenIdentifier _ is a reasonably secure way to propagate the 
_containerType_  to NM from the RM.The _containerType_ is set in the 
_ContainerContext_ in the NM so that it is available for auxiliary services. 
[~kishorch] is already integrating this with YARN-2884 so it should be aligned 
with what you are trying to achieve in YARN-2877. Additionally based on 
[~xgong]'s feedback, we updated _containerType_  to be an enum from the earlier 
boolean flag so should cover your future requirements of adding additional 
container types.

> [Collector wireup] We need an assured way to determine if a container is an 
> AM container on NM
> ----------------------------------------------------------------------------------------------
>                 Key: YARN-3116
>                 URL: https://issues.apache.org/jira/browse/YARN-3116
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: nodemanager, timelineserver
>            Reporter: Zhijie Shen
>            Assignee: Giovanni Matteo Fumarola
>         Attachments: YARN-3116.patch, YARN-3116.v2.patch, YARN-3116.v3.patch, 
> YARN-3116.v4.patch, YARN-3116.v5.patch, YARN-3116.v6.patch, 
> YARN-3116.v7.patch, YARN-3116.v8.patch, YARN-3116.v9.patch
> In YARN-3030, to start the per-app aggregator only for a started AM 
> container,  we need to determine if the container is an AM container or not 
> from the context in NM (we can do it on RM). This information is missing, 
> such that we worked around to considered the container with ID "xxxx_01" as 
> the AM container. Unfortunately, this is neither necessary or sufficient 
> condition. We need to have a way to determine if a container is an AM 
> container on NM. We can add flag to the container object or create an API to 
> do the judgement. Perhaps the distributed AM information may also be useful 
> to YARN-2877.

This message was sent by Atlassian JIRA

Reply via email to