Sumit Kumar commented on YARN-2505:

I figured it might make better sense to delete labels one by one because each 
label can be associated with multiple nodes and it would take time depending on 
the datastructure used to store the label->node association. in that case 
following would be better
* remove a label
** DELETE /label/<label> (this should remove all associate node associate for 
this particular label)
instead of 
* remove labels
** DELETE /labels (takes labels=<list_of_labels> as parameter)

The only benefit the later one could possibly provide is efficiency in cleaning 
up multiple labels in one go (if at all). 

> Support get/add/remove/change labels in RM REST API
> ---------------------------------------------------
>                 Key: YARN-2505
>                 URL: https://issues.apache.org/jira/browse/YARN-2505
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: resourcemanager
>            Reporter: Wangda Tan
>            Assignee: Craig Welch
>         Attachments: YARN-2505.1.patch, YARN-2505.patch

This message was sent by Atlassian JIRA

Reply via email to