[
https://issues.apache.org/jira/browse/YARN-2504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14173236#comment-14173236
]
Sunil G commented on YARN-2504:
-------------------------------
Hi [~gp.leftnoteasy]
{code}
AddToClusterNodeLabelsResponse response =
recordFactory.newRecordInstance(AddToClusterNodeLabelsResponse.class);
try {
rmContext.getNodeLabelManager().addToCluserNodeLabels(request.getNodeLabels());
RMAuditLogger
.logSuccess(user.getShortUserName(), argName, "AdminService");
return response;
}
{code}
Here *response* object is created. Now labels which u received from incoming
request is passed to LabelManager and it may undergo a validation there. If any
problem of invalid label arises, how response object is populated. Here I was
not able to get that part of code.
> Support get/add/remove/change labels in RM admin CLI
> -----------------------------------------------------
>
> Key: YARN-2504
> URL: https://issues.apache.org/jira/browse/YARN-2504
> Project: Hadoop YARN
> Issue Type: Sub-task
> Components: resourcemanager
> Reporter: Wangda Tan
> Assignee: Wangda Tan
> Attachments: YARN-2504-20141015-1.patch, YARN-2504.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)