The behavior of the -replaceLabelsOnNode of yarn rmadmin is not what I expect.
[yarn@master1 ~]$ yarn rmadmin -replaceLabelsOnNode data2=GPU
[yarn@master1 ~]$ echo $?
0
However, looking at the resource manager UI and clicking on nodes, the label is not applied. Therefore, if the command didnt accomplish the task, why didnt it fail?
[yarn@master1 ~]$ yarn rmadmin -replaceLabelsOnNode data2.c.hdpfastrack.internal=GPU
Using the full hostname, the command executes and the expected output is seen in the RM UI.
At least, if i mistype the node label, yarn rmadmin will complain that the label is not recognized.