Closed pj001 closed 8 months ago
根据实测,streampark2.1.2 与此包存在冲突。
You can check if there are common-cli conflicts in hadoop-related packages. e.g flink-shaded-hadoop-x-uber.jar
commons-cli-1.2 in flink-shaded-hadoop-3-uber-xxx.jar is lower than streampark-2.1.2's commons-cli-1.5.0,who is short of org.apache.commons.cli.Option$Builder .
consider flink-shaded-hadoop-2-uber-2.8.3-10.0.jar,who's commons-cli is 1.3,it's usable.
Search before asking
Java Version
1.8
Scala Version
2.11.x
StreamPark Version
2.1.2
Flink Version
1.13.6
deploy mode
yarn-application
What happened
streampark 使用 flink1.13.6 (commons-cli-1.3.1)提交任务,出现 commons-cli 冲突,我这边是首次提交无问题,某次重启任务时此问题出现: 1.检查项目是否打包依赖,排除commons-cli打包后提交任务。问题未解决 2.尝试将streampark lib 目录包更换与flink对应版本一致,重启streampark。问题未解决。 3.尝试替换streampark hdfs flink 与本地备份的commons-cli jar,重启streampark。问题未解决。 4.删除本地streampark workspace,重启集群,启动任务,问题未解决。 5.删除hdfs streampark workspace,重启集群,启动任务,问题未解决。 6.删除本地streampark workspace,hdfs streampark workspace,替换 flink1.13 streampark2.1.2 commons-cli 为 commons-cli-1.3.1 问题解决。 7.回滚streampark2.1.1,问题解决。 猜测可能是streampark重启任务任务时从本地或者hdfs的备份加载flink依赖导致失败,或者是加载了整个flink 任务(flink项目代码)的 jar ,导致冲突。
Error Exception
Screenshots
Are you willing to submit PR?
Code of Conduct