Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.commons.cli.Option.builder(Ljava/lang/String;)Lorg/apache/commons/cli is reported when starting yarn-application in the hadoop cluster /Option$Builder;flink version is 1.18, hadoop cluster is version 3.3.6 #3752

Closed
3 tasks done
QuintinLuke opened this issue Aug 27, 2024 · 8 comments
Labels
FAQ Frequently Asked Questions

Comments

@QuintinLuke
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

在hadoop集群集群中采用yarn-application启动时报错Exception in thread "main" java.lang.NoSuchMethodError: org.apache.commons.cli.Option.builder(Ljava/lang/String;)Lorg/apache/commons/cli/Option$Builder;flink版本是1.18,hadoop集群是3.3.6版本

What you expected to happen

在hadoop集群集群中采用yarn-application启动时报错Exception in thread "main" java.lang.NoSuchMethodError: org.apache.commons.cli.Option.builder(Ljava/lang/String;)Lorg/apache/commons/cli/Option$Builder;flink版本是1.18,hadoop集群是3.3.6版本

How to reproduce

在hadoop集群集群中采用yarn-application启动时报错Exception in thread "main" java.lang.NoSuchMethodError: org.apache.commons.cli.Option.builder(Ljava/lang/String;)Lorg/apache/commons/cli/Option$Builder;flink版本是1.18,hadoop集群是3.3.6版本

Anything else

在hadoop集群集群中采用yarn-application启动时报错Exception in thread "main" java.lang.NoSuchMethodError: org.apache.commons.cli.Option.builder(Ljava/lang/String;)Lorg/apache/commons/cli/Option$Builder;flink版本是1.18,hadoop集群是3.3.6版本

Version

dev

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@QuintinLuke QuintinLuke added Bug Something isn't working Waiting for reply Waiting for reply labels Aug 27, 2024
@github-actions github-actions bot changed the title 在hadoop集群集群中采用yarn-application启动时报错Exception in thread "main" java.lang.NoSuchMethodError: org.apache.commons.cli.Option.builder(Ljava/lang/String;)Lorg/apache/commons/cli/Option$Builder;flink版本是1.18,hadoop集群是3.3.6版本 Exception in thread "main" java.lang.NoSuchMethodError: org.apache.commons.cli.Option.builder(Ljava/lang/String;)Lorg/apache/commons/cli is reported when starting yarn-application in the hadoop cluster /Option$Builder;flink version is 1.18, hadoop cluster is version 3.3.6 Aug 27, 2024
@Zzm0809
Copy link
Contributor

Zzm0809 commented Aug 28, 2024

添加 common-cli 依赖

@Zzm0809 Zzm0809 added FAQ Frequently Asked Questions and removed Bug Something isn't working Waiting for reply Waiting for reply labels Aug 28, 2024
@QuintinLuke
Copy link
Author

添加 common-cli 依赖
我在hdfs:///dingky/lib和dinky安装根目录的extends文件夹下、hadoop安装目录上、flink的lib的=上已经尝试添加了 common-cli -1.2、common-cli -1.5、common-cli-1.6、 common-cli -1.9版本,均是报这个错误。hdfs:///dingky/lib 是指定的flink lib 依赖路径。

@Zzm0809
Copy link
Contributor

Zzm0809 commented Aug 28, 2024

添加 common-cli 依赖
我在hdfs:///dingky/lib和dinky安装根目录的extends文件夹下、hadoop安装目录上、flink的lib的=上已经尝试添加了 common-cli -1.2、common-cli -1.5、common-cli-1.6、 common-cli -1.9版本,均是报这个错误。hdfs:///dingky/lib 是指定的flink lib 依赖路径。

添加完重启

@QuintinLuke
Copy link
Author

添加 common-cli 依赖
我在hdfs:///dingky/lib和dinky安装根目录的extends文件夹下、hadoop安装目录上、flink的lib的=上已经尝试添加了 common-cli -1.2、common-cli -1.5、common-cli-1.6、 common-cli -1.9版本,均是报这个错误。hdfs:///dingky/lib 是指定的flink lib 依赖路径。

添加完重启

有重启过的,还是这个错误

@Zzm0809
Copy link
Contributor

Zzm0809 commented Aug 28, 2024

以上报错原因就是 common-cli 依赖冲突导致的, 如还有问题,需要自行排查环境,是否包含了多个版本的此依赖 但是这个包是 yarn-application 模式必须加的

@QuintinLuke
Copy link
Author

以上报错原因就是 common-cli 依赖冲突导致的, 如还有问题,需要自行排查环境,是否包含了多个版本的此依赖 但是这个包是 yarn-application 模式必须加的
现在报错事:classnotfoundexception:com.fastxml.jackson.datatype.jar310.deser.localdatetimedeserializer

@Zzm0809
Copy link
Contributor

Zzm0809 commented Aug 28, 2024

以上报错原因就是 common-cli 依赖冲突导致的, 如还有问题,需要自行排查环境,是否包含了多个版本的此依赖 但是这个包是 yarn-application 模式必须加的
现在报错事:classnotfoundexception:com.fastxml.jackson.datatype.jar310.deser.localdatetimedeserializer

这不是很明确吗? 这种问题建议自行排查/解决

@Zzm0809 Zzm0809 closed this as completed Aug 29, 2024
@lianchaoqi
Copy link

哥们 咋样了,这个问题解决了嘛?我的问题跟你的一模一样,我整了几天了各种方式都试过了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FAQ Frequently Asked Questions
Projects
None yet
Development

No branches or pull requests

3 participants