hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kai Sasaki (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-13044) Upgrade httpcomponents to avoid CLASSPATH confliction
Date Thu, 21 Apr 2016 05:44:25 GMT
Kai Sasaki created HADOOP-13044:
-----------------------------------

             Summary: Upgrade httpcomponents to avoid CLASSPATH confliction
                 Key: HADOOP-13044
                 URL: https://issues.apache.org/jira/browse/HADOOP-13044
             Project: Hadoop Common
          Issue Type: Improvement
            Reporter: Kai Sasaki
            Assignee: Kai Sasaki


In case of using AWS SDK in the classpath of hadoop, we faced an issue caused by incompatiblity
of AWS SDK and httpcomponents.

{code}
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)
{code}

The latest AWS SDK depends on 4.3.x which has [DefaultConnectionKeepAliveStrategy.INSTANCE|http://hc.apache.org/httpcomponents-client-4.3.x/httpclient/apidocs/org/apache/http/impl/client/DefaultConnectionKeepAliveStrategy.html#INSTANCE].
This field is introduced from 4.3.

This will allow us to avoid {{CLASSPATH}} confliction around httpclient versions.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message