HADOOP-19143. Upgrade commons-cli to 1.9.0 (#7126) Contributed by Min Yan.
Reviewed-by: Ayush Saxena <ayushsaxena@apache.org> Signed-off-by: Shilun Fan <slfan1989@apache.org>
This commit is contained in:
parent
df979e70de
commit
9ae01bdbe8
@ -244,7 +244,7 @@ com.microsoft.azure:azure-storage:7.0.0
|
||||
com.nimbusds:nimbus-jose-jwt:9.37.2
|
||||
com.zaxxer:HikariCP:4.0.3
|
||||
commons-beanutils:commons-beanutils:1.9.4
|
||||
commons-cli:commons-cli:1.5.0
|
||||
commons-cli:commons-cli:1.9.0
|
||||
commons-codec:commons-codec:1.15
|
||||
org.apache.commons:commons-collections4:4.4
|
||||
commons-daemon:commons-daemon:1.0.13
|
||||
|
@ -560,7 +560,7 @@ boolean parseArguments(String[] args) throws IOException {
|
||||
ignoreSymlink = true;
|
||||
}
|
||||
String fs = parser.getCommandLine()
|
||||
.getOptionValue("fs", null);
|
||||
.getOptionValue("fs", () -> null);
|
||||
String path = parser.getCommandLine().getOptionValue("target",
|
||||
"/usr/lib/mr-framework.tar.gz#mr-framework");
|
||||
boolean isFullPath =
|
||||
|
@ -119,7 +119,7 @@
|
||||
|
||||
<!-- Apache Commons dependencies -->
|
||||
<commons-beanutils.version>1.9.4</commons-beanutils.version>
|
||||
<commons-cli.version>1.5.0</commons-cli.version>
|
||||
<commons-cli.version>1.9.0</commons-cli.version>
|
||||
<commons-codec.version>1.15</commons-codec.version>
|
||||
<commons-collections4.version>4.4</commons-collections4.version>
|
||||
<commons-compress.version>1.26.1</commons-compress.version>
|
||||
|
@ -586,7 +586,7 @@ public boolean init(String[] args) throws ParseException {
|
||||
+ " exiting. Specified numContainer=" + numContainers);
|
||||
}
|
||||
|
||||
nodeLabelExpression = cliParser.getOptionValue("node_label_expression", null);
|
||||
nodeLabelExpression = cliParser.getOptionValue("node_label_expression", () -> null);
|
||||
|
||||
clientTimeout = Integer.parseInt(cliParser.getOptionValue("timeout", "600000"));
|
||||
|
||||
|
@ -160,7 +160,7 @@ public boolean init(String[] args) throws ParseException {
|
||||
appName = cliParser.getOptionValue("appname", "UnmanagedAM");
|
||||
amPriority = Integer.parseInt(cliParser.getOptionValue("priority", "0"));
|
||||
amQueue = cliParser.getOptionValue("queue", "default");
|
||||
classpath = cliParser.getOptionValue("classpath", null);
|
||||
classpath = cliParser.getOptionValue("classpath", () ->null);
|
||||
|
||||
amCmd = cliParser.getOptionValue("cmd");
|
||||
if (amCmd == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user