Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Trying to create two node labels "x" as exclusive, and "y" as shareable

avatar
Rising Star

I was trying to create two node labels "x" as exclusive, and "y" as shareable (non-exclusive). But this command ain't working.

Kindly suggest.

yarn rmadmin -addToClusterNodeLabels "x(exclusive=true),y(exclusive=false)"
1 ACCEPTED SOLUTION

avatar
Super Guru

@Gaurab D

As Sunile mentions, there are a couple of steps to the process. You need to provide more detail about what steps you have completed.

For the specific command you are using, Make sure you use:

sudo -u yarn yarn rmadmin -addToClusterNodeLabels "x(exclusive=true),y(exclusive=false)"

Here is the documentation:

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_yarn_resource_mgt/content/configuring_no...

View solution in original post

3 REPLIES 3

avatar
Master Guru

@Gaurab D what version of HDP are you on?

What is the error you get when you issue the command?

have you done sudo su yarn?

have you creatd label directory in hdfs?

have you set yarn.node.labels.enabled = true?

have you set yarn.node-labels.fs-store.root-dir?

After making changes did you restart resource manager?

what happens when you run yarn cluster --list-node-labels?

Have you followed directions list here?

avatar
Super Guru

@Gaurab D

As Sunile mentions, there are a couple of steps to the process. You need to provide more detail about what steps you have completed.

For the specific command you are using, Make sure you use:

sudo -u yarn yarn rmadmin -addToClusterNodeLabels "x(exclusive=true),y(exclusive=false)"

Here is the documentation:

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_yarn_resource_mgt/content/configuring_no...

avatar
Rising Star

Thanks, It was really helpful