Support Questions
Find answers, ask questions, and share your expertise

yarn rmadmin -replaceLabelsOnNode behavior

The behavior of the -replaceLabelsOnNode of yarn rmadmin is not what I expect.

[yarn@master1 ~]$ yarn rmadmin -replaceLabelsOnNode data2=GPU
[yarn@master1 ~]$ echo $?

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.



@Patrick Picard, Looks like this silent failure on incorrect hostname is by design. The same issue is discussed at

If you want replaceLables to fail on invalid hostname please use -failOnUnknownNodes option.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.