Support Questions

Find answers, ask questions, and share your expertise

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