问题
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;)
I've tried to include/exclude aws-sdk from my jar, but it didn't help.
Does anyone know how to resolve these conflicts ?
回答1:
Apache Flink loads many classes by default into its classpath. And your problem is just with versions conflict.
Please read the last section of this article https://ci.apache.org/projects/flink/flink-docs-release-1.3/monitoring/debugging_classloading.html
来源:https://stackoverflow.com/questions/46907526/aws-sdk-conflicts-in-apache-flink-enviromnent