Apache HTTP Client generates warning on older version usage
See original GitHub issueAfter upgrading AWS SDK Java v2 to 2.7.13 (latest available release), I can see the following warning message:
11:04:07.122 WARN [main]: s.a.a.h.a.i.utils.ApacheUtils: NoSuchMethodError was thrown when disabling normalizeUri. This indicates you are using an old version (< 4.5.8) of Apache http client. It is recommended to use http client version >= 4.5.9 to avoid the breaking change introduced in apache client 4.5.7 and the latency in exception handling. See https://github.com/aws/aws-sdk-java/issues/1919 for more information
Apache HTTP Client has been downgraded to 4.5.7 after upgrading to the latest SDK version.
See #1168
According to Maven Dependency plugin this version of Apache HTTP Client is a transitive dependency from:
software.amazon.awssdk:dynamodb:jar:2.7.13:compile
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:15 (5 by maintainers)
If you are facing this warning and running a project using
spark-submit
, a probable cause for it is Apache Spark (2.4 in my case) is usinghttp-client
of4.5.6
and that class get picked up first by the class loader and ignores4.5.9
used byaws-sdk-java-v2
.To solve this, we simply shade this dependency in
sbt-assembly
to ensure that AWS SDK used4.5.9
instead of4.5.6
:Is WARN in the SDK just a warning, or an Error in fact (it causes the program not to run correctly)?