Support Questions
Find answers, ask questions, and share your expertise
Announcements
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 $?
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.

1 REPLY 1
Highlighted

Re: yarn rmadmin -replaceLabelsOnNode behavior

Guru

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

https://issues.apache.org/jira/browse/YARN-4855.

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