Skip to content

Commit

Permalink
HADOOP-19143. Upgrade commons-cli to 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
myandpr authored and yanmin committed Nov 5, 2024
1 parent 46fc045 commit 42edddc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LICENSE-binary
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion hadoop-project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 42edddc

Please sign in to comment.