YARN-3581. Deprecate -directlyAccessNodeLabelStore in RMAdminCLI. (Naganarasimha G R via wangda)
This commit is contained in:
parent
788406e90c
commit
cab7674e54
|
@ -268,6 +268,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
YARN-3647. RMWebServices api's should use updated api from CommonNodeLabelsManager
|
YARN-3647. RMWebServices api's should use updated api from CommonNodeLabelsManager
|
||||||
to get NodeLabel object. (Sunil G via wangda)
|
to get NodeLabel object. (Sunil G via wangda)
|
||||||
|
|
||||||
|
YARN-3581. Deprecate -directlyAccessNodeLabelStore in RMAdminCLI.
|
||||||
|
(Naganarasimha G R via wangda)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
YARN-3339. TestDockerContainerExecutor should pull a single image and not
|
YARN-3339. TestDockerContainerExecutor should pull a single image and not
|
||||||
|
|
|
@ -73,7 +73,7 @@ public class ClusterCLI extends YarnCLI {
|
||||||
"List cluster node-label collection");
|
"List cluster node-label collection");
|
||||||
opts.addOption("h", HELP_CMD, false, "Displays help for all commands.");
|
opts.addOption("h", HELP_CMD, false, "Displays help for all commands.");
|
||||||
opts.addOption("dnl", DIRECTLY_ACCESS_NODE_LABEL_STORE, false,
|
opts.addOption("dnl", DIRECTLY_ACCESS_NODE_LABEL_STORE, false,
|
||||||
"Directly access node label store, "
|
"This is DEPRECATED, will be removed in future releases. Directly access node label store, "
|
||||||
+ "with this option, all node label related operations"
|
+ "with this option, all node label related operations"
|
||||||
+ " will NOT connect RM. Instead, they will"
|
+ " will NOT connect RM. Instead, they will"
|
||||||
+ " access/modify stored node labels directly."
|
+ " access/modify stored node labels directly."
|
||||||
|
|
|
@ -109,20 +109,20 @@ public class RMAdminCLI extends HAAdmin {
|
||||||
.put("-getGroups", new UsageInfo("[username]",
|
.put("-getGroups", new UsageInfo("[username]",
|
||||||
"Get the groups which given user belongs to."))
|
"Get the groups which given user belongs to."))
|
||||||
.put("-addToClusterNodeLabels",
|
.put("-addToClusterNodeLabels",
|
||||||
new UsageInfo("[label1(exclusive=true),"
|
new UsageInfo("<\"label1(exclusive=true),"
|
||||||
+ "label2(exclusive=false),label3]",
|
+ "label2(exclusive=false),label3\">",
|
||||||
"add to cluster node labels "))
|
"add to cluster node labels. Default exclusivity is true"))
|
||||||
.put("-removeFromClusterNodeLabels",
|
.put("-removeFromClusterNodeLabels",
|
||||||
new UsageInfo("[label1,label2,label3] (label splitted by \",\")",
|
new UsageInfo("<label1,label2,label3> (label splitted by \",\")",
|
||||||
"remove from cluster node labels"))
|
"remove from cluster node labels"))
|
||||||
.put("-replaceLabelsOnNode",
|
.put("-replaceLabelsOnNode",
|
||||||
new UsageInfo(
|
new UsageInfo(
|
||||||
"[node1[:port]=label1,label2 node2[:port]=label1,label2]",
|
"<\"node1[:port]=label1,label2 node2[:port]=label1,label2\">",
|
||||||
"replace labels on nodes"
|
"replace labels on nodes"
|
||||||
+ " (please note that we do not support specifying multiple"
|
+ " (please note that we do not support specifying multiple"
|
||||||
+ " labels on a single host for now.)"))
|
+ " labels on a single host for now.)"))
|
||||||
.put("-directlyAccessNodeLabelStore",
|
.put("-directlyAccessNodeLabelStore",
|
||||||
new UsageInfo("", "Directly access node label store, "
|
new UsageInfo("", "This is DEPRECATED, will be removed in future releases. Directly access node label store, "
|
||||||
+ "with this option, all node label related operations"
|
+ "with this option, all node label related operations"
|
||||||
+ " will not connect RM. Instead, they will"
|
+ " will not connect RM. Instead, they will"
|
||||||
+ " access/modify stored node labels directly."
|
+ " access/modify stored node labels directly."
|
||||||
|
@ -222,9 +222,10 @@ public class RMAdminCLI extends HAAdmin {
|
||||||
" [-refreshAdminAcls]" +
|
" [-refreshAdminAcls]" +
|
||||||
" [-refreshServiceAcl]" +
|
" [-refreshServiceAcl]" +
|
||||||
" [-getGroup [username]]" +
|
" [-getGroup [username]]" +
|
||||||
" [[-addToClusterNodeLabels [label1,label2,label3]]" +
|
" [-addToClusterNodeLabels <\"label1(exclusive=true),"
|
||||||
" [-removeFromClusterNodeLabels [label1,label2,label3]]" +
|
+ "label2(exclusive=false),label3\">]" +
|
||||||
" [-replaceLabelsOnNode [node1[:port]=label1,label2 node2[:port]=label1]" +
|
" [-removeFromClusterNodeLabels <label1,label2,label3>]" +
|
||||||
|
" [-replaceLabelsOnNode <\"node1[:port]=label1,label2 node2[:port]=label1\">]" +
|
||||||
" [-directlyAccessNodeLabelStore]]");
|
" [-directlyAccessNodeLabelStore]]");
|
||||||
if (isHAEnabled) {
|
if (isHAEnabled) {
|
||||||
appendHAUsage(summary);
|
appendHAUsage(summary);
|
||||||
|
@ -681,6 +682,7 @@ public class RMAdminCLI extends HAAdmin {
|
||||||
} else if ("-addToClusterNodeLabels".equals(cmd)) {
|
} else if ("-addToClusterNodeLabels".equals(cmd)) {
|
||||||
if (i >= args.length) {
|
if (i >= args.length) {
|
||||||
System.err.println(NO_LABEL_ERR_MSG);
|
System.err.println(NO_LABEL_ERR_MSG);
|
||||||
|
printUsage("", isHAEnabled);
|
||||||
exitCode = -1;
|
exitCode = -1;
|
||||||
} else {
|
} else {
|
||||||
exitCode = addToClusterNodeLabels(args[i]);
|
exitCode = addToClusterNodeLabels(args[i]);
|
||||||
|
@ -688,6 +690,7 @@ public class RMAdminCLI extends HAAdmin {
|
||||||
} else if ("-removeFromClusterNodeLabels".equals(cmd)) {
|
} else if ("-removeFromClusterNodeLabels".equals(cmd)) {
|
||||||
if (i >= args.length) {
|
if (i >= args.length) {
|
||||||
System.err.println(NO_LABEL_ERR_MSG);
|
System.err.println(NO_LABEL_ERR_MSG);
|
||||||
|
printUsage("", isHAEnabled);
|
||||||
exitCode = -1;
|
exitCode = -1;
|
||||||
} else {
|
} else {
|
||||||
exitCode = removeFromClusterNodeLabels(args[i]);
|
exitCode = removeFromClusterNodeLabels(args[i]);
|
||||||
|
@ -695,6 +698,7 @@ public class RMAdminCLI extends HAAdmin {
|
||||||
} else if ("-replaceLabelsOnNode".equals(cmd)) {
|
} else if ("-replaceLabelsOnNode".equals(cmd)) {
|
||||||
if (i >= args.length) {
|
if (i >= args.length) {
|
||||||
System.err.println(NO_MAPPING_ERR_MSG);
|
System.err.println(NO_MAPPING_ERR_MSG);
|
||||||
|
printUsage("", isHAEnabled);
|
||||||
exitCode = -1;
|
exitCode = -1;
|
||||||
} else {
|
} else {
|
||||||
exitCode = replaceLabelsOnNodes(args[i]);
|
exitCode = replaceLabelsOnNodes(args[i]);
|
||||||
|
|
|
@ -137,7 +137,9 @@ public class TestClusterCLI {
|
||||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
PrintWriter pw = new PrintWriter(baos);
|
PrintWriter pw = new PrintWriter(baos);
|
||||||
pw.println("usage: yarn cluster");
|
pw.println("usage: yarn cluster");
|
||||||
pw.println(" -dnl,--directly-access-node-label-store Directly access node label");
|
pw.println(" -dnl,--directly-access-node-label-store This is DEPRECATED, will be");
|
||||||
|
pw.println(" removed in future releases.");
|
||||||
|
pw.println(" Directly access node label");
|
||||||
pw.println(" store, with this option, all");
|
pw.println(" store, with this option, all");
|
||||||
pw.println(" node label related operations");
|
pw.println(" node label related operations");
|
||||||
pw.println(" will NOT connect RM. Instead,");
|
pw.println(" will NOT connect RM. Instead,");
|
||||||
|
|
|
@ -333,9 +333,9 @@ public class TestRMAdminCLI {
|
||||||
"yarn rmadmin [-refreshQueues] [-refreshNodes [-g [timeout in seconds]]] [-refreshSuper" +
|
"yarn rmadmin [-refreshQueues] [-refreshNodes [-g [timeout in seconds]]] [-refreshSuper" +
|
||||||
"UserGroupsConfiguration] [-refreshUserToGroupsMappings] " +
|
"UserGroupsConfiguration] [-refreshUserToGroupsMappings] " +
|
||||||
"[-refreshAdminAcls] [-refreshServiceAcl] [-getGroup" +
|
"[-refreshAdminAcls] [-refreshServiceAcl] [-getGroup" +
|
||||||
" [username]] [[-addToClusterNodeLabels [label1,label2,label3]]" +
|
" [username]] [-addToClusterNodeLabels <\"label1(exclusive=true),label2(exclusive=false),label3\">]" +
|
||||||
" [-removeFromClusterNodeLabels [label1,label2,label3]] [-replaceLabelsOnNode " +
|
" [-removeFromClusterNodeLabels <label1,label2,label3>] [-replaceLabelsOnNode " +
|
||||||
"[node1[:port]=label1,label2 node2[:port]=label1] [-directlyAccessNodeLabelStore]] " +
|
"<\"node1[:port]=label1,label2 node2[:port]=label1\">] [-directlyAccessNodeLabelStore]] " +
|
||||||
"[-help [cmd]]"));
|
"[-help [cmd]]"));
|
||||||
assertTrue(dataOut
|
assertTrue(dataOut
|
||||||
.toString()
|
.toString()
|
||||||
|
@ -413,9 +413,10 @@ public class TestRMAdminCLI {
|
||||||
"yarn rmadmin [-refreshQueues] [-refreshNodes [-g [timeout in seconds]]] [-refreshSuper"
|
"yarn rmadmin [-refreshQueues] [-refreshNodes [-g [timeout in seconds]]] [-refreshSuper"
|
||||||
+ "UserGroupsConfiguration] [-refreshUserToGroupsMappings] "
|
+ "UserGroupsConfiguration] [-refreshUserToGroupsMappings] "
|
||||||
+ "[-refreshAdminAcls] [-refreshServiceAcl] [-getGroup"
|
+ "[-refreshAdminAcls] [-refreshServiceAcl] [-getGroup"
|
||||||
+ " [username]] [[-addToClusterNodeLabels [label1,label2,label3]]"
|
+ " [username]] [-addToClusterNodeLabels <\"label1(exclusive=true),"
|
||||||
+ " [-removeFromClusterNodeLabels [label1,label2,label3]] [-replaceLabelsOnNode "
|
+ "label2(exclusive=false),label3\">]"
|
||||||
+ "[node1[:port]=label1,label2 node2[:port]=label1] [-directlyAccessNodeLabelStore]] "
|
+ " [-removeFromClusterNodeLabels <label1,label2,label3>] [-replaceLabelsOnNode "
|
||||||
|
+ "<\"node1[:port]=label1,label2 node2[:port]=label1\">] [-directlyAccessNodeLabelStore]] "
|
||||||
+ "[-transitionToActive [--forceactive] <serviceId>] "
|
+ "[-transitionToActive [--forceactive] <serviceId>] "
|
||||||
+ "[-transitionToStandby <serviceId>] "
|
+ "[-transitionToStandby <serviceId>] "
|
||||||
+ "[-getServiceState <serviceId>] [-checkHealth <serviceId>] [-help [cmd]]";
|
+ "[-getServiceState <serviceId>] [-checkHealth <serviceId>] [-help [cmd]]";
|
||||||
|
|
Loading…
Reference in New Issue