Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13044

Amazon S3 library 10.10.60+ (JDK8u60+) depends on http components 4.3

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.8.0
    • None
    • build, fs/s3
    • None
    • JDK 8u60

    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

        Issue Links

          Activity

            People

              lewuathe Kai
              lewuathe Kai
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: