[
https://issues.apache.org/jira/browse/HADOOP-19143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17894541#comment-17894541
]
ASF GitHub Bot commented on HADOOP-19143:
-----------------------------------------
myandpr commented on PR #7126:
URL: https://github.com/apache/hadoop/pull/7126#issuecomment-2449629255
### Description of differences between commons-cli 1.9.0 and 1.6.0
- compilation error on commons-cli 1.9.0 as follows:
```
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/Users/didi/work/community/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-distributedshell/src/main/java/org/apache/hadoop/yarn/applications/distributedshell/Client.java:[589,36]
对getOptionValue的引用不明确
org.apache.commons.cli.CommandLine 中的方法
getOptionValue(java.lang.String,java.lang.String) 和
org.apache.commons.cli.CommandLine 中的方法
getOp(java.lang.String,java.util.function.Supplier<java.lang.String>) 都匹配
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
```
- reason:
https://commons.apache.org/proper/commons-cli/apidocs/org/apache/commons/cli/CommandLine.html
Ambiguous method call in commons-cli 1.9.0. Both
getOptionValue(String,String)in CommandLine and
getOptionValue(String,Supplier<String>)in CommandLine match
> Upgrade commons-cli to 1.6.0.
> -----------------------------
>
> Key: HADOOP-19143
> URL: https://issues.apache.org/jira/browse/HADOOP-19143
> Project: Hadoop Common
> Issue Type: Improvement
> Components: build, common
> Affects Versions: 3.5.0, 3.4.1
> Reporter: Shilun Fan
> Assignee: Shilun Fan
> Priority: Major
> Labels: pull-request-available
>
> commons-cli can be upgraded to 1.6.0, I will try to upgrade.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]