Zhijie Shen commented on YARN-3025:

In terms of usability, I think it's a good idea to have RM remember to the 
blacklisted nodes, such that the user-land code is relieved from recovering 
this information across AM restarting.

At RM side, the blacklisted nodes can be associated to RMApp. They have to be 
persisted for the sake of RM restarting.

> Provide API for retrieving blacklisted nodes
> --------------------------------------------
>                 Key: YARN-3025
>                 URL: https://issues.apache.org/jira/browse/YARN-3025
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Ted Yu
> We have the following method which updates blacklist:
> {code}
>   public synchronized void updateBlacklist(List<String> blacklistAdditions,
>       List<String> blacklistRemovals) {
> {code}
> Upon AM failover, there should be an API which returns the blacklisted nodes 
> so that the new AM can make consistent decisions.
> The new API can be:
> {code}
>   public synchronized List<String> getBlacklistedNodes()
> {code}

This message was sent by Atlassian JIRA

Reply via email to