hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Weiwei Yang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-6858) Attribute Manager to store and provide the attributes in RM
Date Mon, 12 Feb 2018 02:38:00 GMT

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

Weiwei Yang commented on YARN-6858:

Hi [~Naganarasimha]

Except Jenkins warnings, the patch mostly looks good to me. Some comments


AttributeValue#compare(AttributeValue other, AttributeExpressionOperation op)


this API compares a value with another by an operator. But for IN/NOT_IN, it is more like
a set based comparison. That says for a given attribute value, we need to check if it is in
(or not in) a set of strings. In this case, this API doesn't seem to be appropriate.


It seems you have included the changes from YARN-7892, have you checked the comments I left
on that one, see this comment? Basically I think we should have a more restrictive equals
implementation to avoid confusions.

 # We need an UT for #validate, but I am OK to track this in a lower priority JIRA.
 # NodeLabelUtil.checkAndThrowLabelName(attribute.getAttributePrefix());  — This pattern
doesn't seem to allow DNS format of prefixes, could you please double check.
 # You still used \{{Host}} abstraction, I am assuming you have tried and it doesn't work
if we read info simply from, for example, just from RMNode.

Other seems good to me.

Thanks for the updates.


> Attribute Manager to store and provide the attributes in RM
> -----------------------------------------------------------
>                 Key: YARN-6858
>                 URL: https://issues.apache.org/jira/browse/YARN-6858
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: api, capacityscheduler, client
>            Reporter: Naganarasimha G R
>            Assignee: Naganarasimha G R
>            Priority: Major
>         Attachments: YARN-6858-YARN-3409.001.patch, YARN-6858-YARN-3409.002.patch, YARN-6858-YARN-3409.003.patch
> Similar to CommonNodeLabelsManager we need to have a centralized manager for Node Attributes

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org

View raw message