Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

yarn rmadmin -replaceLabelsOnNode behavior

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.


Re: yarn rmadmin -replaceLabelsOnNode behavior


@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.

Don't have an account?
Coming from Hortonworks? Activate your account here