hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Íñigo Goiri (JIRA) <j...@apache.org>
Subject [jira] [Commented] (YARN-996) REST API support for node resource configuration
Date Wed, 06 Feb 2019 19:10:00 GMT

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

Íñigo Goiri commented on YARN-996:
----------------------------------

This is the same approach followed in {{ResourceOption}}.
The idea is that you only create the object if it's needed for extracting.
When this happens is cached and then returned the cache all the time.
{{getResourceOption()}} cannot go into NPE as it's just the previous check that we do where
we create the cached object.
The only one that would cause an NPE is the contructor with a null ResourceOption.

> REST API support for node resource configuration
> ------------------------------------------------
>
>                 Key: YARN-996
>                 URL: https://issues.apache.org/jira/browse/YARN-996
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: graceful, nodemanager, scheduler
>            Reporter: Junping Du
>            Assignee: Tsuyoshi Ozawa
>            Priority: Major
>         Attachments: YARN-996-2.patch, YARN-996-3.patch, YARN-996-4.patch, YARN-996-sample.patch
>
>
> Besides admin protocol and CLI, REST API should also be supported for node resource configuration



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message