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:
yanmin 2024-11-05 10:39:49 +08:00 committed by GitHub
parent df979e70de
commit 9ae01bdbe8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -244,7 +244,7 @@ com.microsoft.azure:azure-storage:7.0.0
com.nimbusds:nimbus-jose-jwt:9.37.2 com.nimbusds:nimbus-jose-jwt:9.37.2
com.zaxxer:HikariCP:4.0.3 com.zaxxer:HikariCP:4.0.3
commons-beanutils:commons-beanutils:1.9.4 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 commons-codec:commons-codec:1.15
org.apache.commons:commons-collections4:4.4 org.apache.commons:commons-collections4:4.4
commons-daemon:commons-daemon:1.0.13 commons-daemon:commons-daemon:1.0.13

View File

@ -560,7 +560,7 @@ boolean parseArguments(String[] args) throws IOException {
ignoreSymlink = true; ignoreSymlink = true;
} }
String fs = parser.getCommandLine() String fs = parser.getCommandLine()
.getOptionValue("fs", null); .getOptionValue("fs", () -> null);
String path = parser.getCommandLine().getOptionValue("target", String path = parser.getCommandLine().getOptionValue("target",
"/usr/lib/mr-framework.tar.gz#mr-framework"); "/usr/lib/mr-framework.tar.gz#mr-framework");
boolean isFullPath = boolean isFullPath =

View File

@ -119,7 +119,7 @@
<!-- Apache Commons dependencies --> <!-- Apache Commons dependencies -->
<commons-beanutils.version>1.9.4</commons-beanutils.version> <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-codec.version>1.15</commons-codec.version>
<commons-collections4.version>4.4</commons-collections4.version> <commons-collections4.version>4.4</commons-collections4.version>
<commons-compress.version>1.26.1</commons-compress.version> <commons-compress.version>1.26.1</commons-compress.version>

View File

@ -586,7 +586,7 @@ public boolean init(String[] args) throws ParseException {
+ " exiting. Specified numContainer=" + numContainers); + " 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")); clientTimeout = Integer.parseInt(cliParser.getOptionValue("timeout", "600000"));

View File

@ -160,7 +160,7 @@ public boolean init(String[] args) throws ParseException {
appName = cliParser.getOptionValue("appname", "UnmanagedAM"); appName = cliParser.getOptionValue("appname", "UnmanagedAM");
amPriority = Integer.parseInt(cliParser.getOptionValue("priority", "0")); amPriority = Integer.parseInt(cliParser.getOptionValue("priority", "0"));
amQueue = cliParser.getOptionValue("queue", "default"); amQueue = cliParser.getOptionValue("queue", "default");
classpath = cliParser.getOptionValue("classpath", null); classpath = cliParser.getOptionValue("classpath", () ->null);
amCmd = cliParser.getOptionValue("cmd"); amCmd = cliParser.getOptionValue("cmd");
if (amCmd == null) { if (amCmd == null) {