hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-16267) Remove httpclient dependency from hbase-rest module
Date Thu, 21 Jul 2016 19:26:20 GMT

     [ https://issues.apache.org/jira/browse/HBASE-16267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ted Yu updated HBASE-16267:
---------------------------
    Attachment: 16267.v4.txt

Encountering the following:
{code}
java.lang.NoSuchFieldError: DEF_CONTENT_CHARSET
  at org.apache.http.impl.client.DefaultHttpClient.setDefaultHttpParams(DefaultHttpClient.java:180)
  at org.apache.http.impl.client.DefaultHttpClient.createHttpParams(DefaultHttpClient.java:158)
  at org.apache.http.impl.client.AbstractHttpClient.getParams(AbstractHttpClient.java:447)
  at org.apache.http.impl.client.AbstractHttpClient.createClientConnectionManager(AbstractHttpClient.java:308)
  at org.apache.http.impl.client.AbstractHttpClient.getConnectionManager(AbstractHttpClient.java:465)
  at org.apache.http.impl.client.AbstractHttpClient.createHttpContext(AbstractHttpClient.java:285)
  at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:799)
  at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
  at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
  at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
  at org.apache.hadoop.hbase.rest.client.Client.executeURI(Client.java:220)
  at org.apache.hadoop.hbase.rest.client.Client.executePathOnly(Client.java:188)
  at org.apache.hadoop.hbase.rest.client.Client.execute(Client.java:246)
  at org.apache.hadoop.hbase.rest.client.Client.put(Client.java:504)
  at org.apache.hadoop.hbase.rest.client.Client.put(Client.java:451)
  at org.apache.hadoop.hbase.rest.client.Client.put(Client.java:421)
  at org.apache.hadoop.hbase.rest.TestGetAndPutResource.testMultiCellGetPutPB(TestGetAndPutResource.java:408)
{code}
Patch v4 excludes dependency on commons-httpclient-3.1.jar but still got the above.

> Remove httpclient dependency from hbase-rest module
> ---------------------------------------------------
>
>                 Key: HBASE-16267
>                 URL: https://issues.apache.org/jira/browse/HBASE-16267
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ted Yu
>         Attachments: 16267.v2.txt, 16267.v4.txt
>
>
> hbase-rest module still has imports from org.apache.commons.httpclient .
> There is more work to be done after HBASE-15767 was integrated.
> In master branch, there seems to be transitive dependency which allows the code to compile:
> {code}
> [INFO] +- org.apache.hadoop:hadoop-common:jar:2.7.1:compile
> [INFO] |  +- org.apache.hadoop:hadoop-annotations:jar:2.7.1:compile
> [INFO] |  +- commons-cli:commons-cli:jar:1.2:compile
> [INFO] |  +- org.apache.commons:commons-math3:jar:3.1.1:compile
> [INFO] |  +- xmlenc:xmlenc:jar:0.52:compile
> [INFO] |  +- commons-httpclient:commons-httpclient:jar:3.1:compile
> {code}



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

Mime
View raw message