问题描述
我试图将我的工作部署到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开发工具包冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!