This is an automated email from the ASF dual-hosted git repository.

snemeth pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new b933f5f  YARN-11001. Add docs on removing node label mapping from a 
node. Contributed by Manu Zhang
b933f5f is described below

commit b933f5f54b7cc6e46f33da3e15065ab9ebe52939
Author: Szilard Nemeth <snem...@apache.org>
AuthorDate: Mon Nov 15 16:02:18 2021 +0100

    YARN-11001. Add docs on removing node label mapping from a node. 
Contributed by Manu Zhang
---
 .../hadoop-yarn/hadoop-yarn-site/src/site/markdown/NodeLabel.md        | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/NodeLabel.md
 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/NodeLabel.md
index 39d8311..32545f3 100644
--- 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/NodeLabel.md
+++ 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/NodeLabel.md
@@ -85,7 +85,8 @@ Notes:
 ###Add/modify node-to-labels mapping to YARN
 
 * 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 don’t 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 doesn’t 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
 

---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to