Details
Description
In case of using AWS SDK in the classpath of hadoop, we faced an issue caused by incompatiblity of AWS SDK and httpcomponents.
java.lang.NoSuchFieldError: INSTANCE at com.amazonaws.http.conn.SdkConnectionKeepAliveStrategy.getKeepAliveDuration(SdkConnectionKeepAliveStrategy.java:48) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:535) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
The latest AWS SDK depends on 4.3.x which has DefaultConnectionKeepAliveStrategy.INSTANCE. This field is introduced from 4.3.
This will allow us to avoid CLASSPATH confliction around httpclient versions.
Attachments
Attachments
Issue Links
- depends upon
-
HADOOP-13050 Upgrade to AWS SDK 1.11.45
- Resolved
- is part of
-
HADOOP-12767 update apache httpclient version to 4.5.2; httpcore to 4.4.4
- Resolved
- is related to
-
HADOOP-12767 update apache httpclient version to 4.5.2; httpcore to 4.4.4
- Resolved