Flink环境中的AWS开发工具包冲突

Flink环境中的AWS开发工具包冲突

本文介绍了Apache Flink环境中的AWS开发工具包冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将我的工作部署到Flink环境中,并总是出现错误:

I'm trying to deploy my job to Flink environment, and always get an error:

java.lang.NoSuchMethodError: com.amazonaws.AmazonWebServiceRequest.putCustomQueryParameter(Ljava/lang/String;Ljava/lang/String;)

我尝试从jar中包含/排除aws-sdk,但这没有帮助.

I've tried to include/exclude aws-sdk from my jar, but it didn't help.

有人知道如何解决这些冲突吗?

Does anyone know how to resolve these conflicts ?

推荐答案

Apache Flink默认将许多类加载到其类路径中.而您的问题仅在于版本冲突.

Apache Flink loads many classes by default into its classpath. And your problem is just with versions conflict.

请阅读本文的最后部分 https://ci.apache.org/projects/flink/flink-docs-release-1.3/monitoring/debugging_classloading.html

Please read the last section of this article https://ci.apache.org/projects/flink/flink-docs-release-1.3/monitoring/debugging_classloading.html

这篇关于Apache Flink环境中的AWS开发工具包冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 10:36