YARN-11001. Add docs on removing node label mapping from a node. Contributed by Manu Zhang

This commit is contained in:
Szilard Nemeth 2021-11-15 16:02:18 +01:00
parent e14a2dcbba
commit b933f5f54b

View File

@ -85,7 +85,8 @@ Notes:
###Add/modify node-to-labels mapping to YARN ###Add/modify node-to-labels mapping to YARN
* Configuring nodes to labels mapping in **Centralized** NodeLabel setup * Configuring nodes to labels mapping in **Centralized** NodeLabel setup
* Executing ```yarn rmadmin -replaceLabelsOnNode “node1[:port]=label1 node2=label2” [-failOnUnknownNodes]```. Added label1 to node1, label2 to node2. If user dont specify port, it adds the label to all ```NodeManagers``` running on the node. If option ```-failOnUnknownNodes``` is set, this command will fail if specified nodes are unknown. * Executing ```yarn rmadmin -replaceLabelsOnNode "node1[:port]=label1 node2=label2" [-failOnUnknownNodes]``` adds label1 to node1, label2 to node2. If user doesnt specify port, it adds the label to all ```NodeManagers``` running on the node. If option ```-failOnUnknownNodes``` is set, this command will fail if specified nodes are unknown.
* To remove mapping from a node, use `-replaceLabelsOnNode` but do not specify any labels. For example, ```yarn rmadmin -replaceLabelsOnNode "node1"``` removes label1 from node1.
* Configuring nodes to labels mapping in **Distributed** NodeLabel setup * Configuring nodes to labels mapping in **Distributed** NodeLabel setup