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

Xuan Gong commented on YARN-1639:
---------------------------------

bq. By the time we return in getRMHAId(), currentRMId could be null if the 
config doesn't have any address matching localhost and ha-id is not specified. 
If that is the case, we should probably throw an exception instead of returning 
null. We should probably add another test case for this too.

Yes, it is possible to return null. But this can be verified in 
verifyAndSetCurrentRMHAId(). If getRMHAId() is return null, it will throw out 
an exception

> YARM RM HA requires different configs on different RM hosts
> -----------------------------------------------------------
>
>                 Key: YARN-1639
>                 URL: https://issues.apache.org/jira/browse/YARN-1639
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: resourcemanager
>            Reporter: Arpit Gupta
>            Assignee: Xuan Gong
>         Attachments: YARN-1639.1.patch, YARN-1639.2.patch, YARN-1639.3.patch
>
>
> We need to set yarn.resourcemanager.ha.id to rm1 or rm2 based on which rm you 
> want to first or second.
> This means we have different configs on different RM nodes. This is unlike 
> HDFS HA where the same configs are pushed to both NN's and it would be better 
> to have the same setup for RM as this would make installation and managing 
> easier.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to