YARN-10366. Fix Yarn rmadmin help message shows two labels for one node for --replaceLabelsOnNode.

Contributed by Tanu Ajmera.
This commit is contained in:
Prabhu Joseph 2020-07-24 16:59:15 +05:30 committed by Prabhu Joseph
parent d02be17a26
commit 60a254621a
2 changed files with 4 additions and 4 deletions

View File

@ -140,7 +140,7 @@ public class RMAdminCLI extends HAAdmin {
"remove from cluster node labels"))
.put("-replaceLabelsOnNode",
new UsageInfo(
"<\"node1[:port]=label1,label2 node2[:port]=label1,label2\"> "
"<\"node1[:port]=label1 node2[:port]=label2\"> "
+ "[-failOnUnknownNodes] ",
"replace labels on nodes"
+ " (please note that we do not support specifying multiple"
@ -280,7 +280,7 @@ public class RMAdminCLI extends HAAdmin {
+ "label2(exclusive=false),label3\">]"
+ " [-removeFromClusterNodeLabels <label1,label2,label3>]"
+ " [-replaceLabelsOnNode "
+ "<\"node1[:port]=label1,label2 node2[:port]=label1\"> "
+ "<\"node1[:port]=label1 node2[:port]=label2\"> "
+ "[-failOnUnknownNodes]]"
+ " [-directlyAccessNodeLabelStore]"
+ " [-refreshClusterMaxPriority]"

View File

@ -703,7 +703,7 @@ public class TestRMAdminCLI {
"<\"label1(exclusive=true),label2(exclusive=false),label3\">] " +
"[-removeFromClusterNodeLabels <label1,label2,label3>] " +
"[-replaceLabelsOnNode " +
"<\"node1[:port]=label1,label2 node2[:port]=label1\"> " +
"<\"node1[:port]=label1 node2[:port]=label2\"> " +
"[-failOnUnknownNodes]] " +
"[-directlyAccessNodeLabelStore] [-refreshClusterMaxPriority] " +
"[-updateNodeResource [NodeID] [MemSize] [vCores] "
@ -795,7 +795,7 @@ public class TestRMAdminCLI {
+ " [username]] [-addToClusterNodeLabels <\"label1(exclusive=true),"
+ "label2(exclusive=false),label3\">]"
+ " [-removeFromClusterNodeLabels <label1,label2,label3>] [-replaceLabelsOnNode "
+ "<\"node1[:port]=label1,label2 node2[:port]=label1\"> "
+ "<\"node1[:port]=label1 node2[:port]=label2\"> "
+ "[-failOnUnknownNodes]] [-directlyAccessNodeLabelStore] "
+ "[-refreshClusterMaxPriority] "
+ "[-updateNodeResource [NodeID] [MemSize] [vCores] "