You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Aneela Saleem (JIRA)" <ji...@apache.org> on 2015/12/15 22:31:46 UTC

[jira] [Comment Edited] (RANGER-769) Can't connect to Solr server because of Httpcore issue in HBase

    [ https://issues.apache.org/jira/browse/RANGER-769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15058860#comment-15058860 ] 

Aneela Saleem edited comment on RANGER-769 at 12/15/15 9:31 PM:
----------------------------------------------------------------

[~rmani] you are right. Issue is resolved if we add both files i.e., httpcore-4.2.5.jar and http-client-4.2.5.jar to hbase/lib/ranger-hbase-plugin-impl folder. Attached is the patch file. 

Also, i pulled the latest code but it does not make soft link to ranger-hbase-plugin-impl in hbase/lib folder. 


was (Author: aneela):
[~rmani] you are right. Issue is resolved if we add both files i.e., httpcore-4.2.5.jar and http-client-4.2.5.jar to hbase/lib/ranger-hbase-plugin-impl folder. Attached is the patch file. 

> Can't connect to Solr server because of Httpcore issue in HBase
> ---------------------------------------------------------------
>
>                 Key: RANGER-769
>                 URL: https://issues.apache.org/jira/browse/RANGER-769
>             Project: Ranger
>          Issue Type: Bug
>            Reporter: Aneela Saleem
>            Assignee: Aneela Saleem
>         Attachments: 0001-RANGER-769-connection-problem-to-Solr-server-because.patch
>
>
> When we install HBase plugin, httpcore is not supplied to HBase lib folder.
> And HBase uses httpcore.4.1.3 version which is not compatible with hhtpclient.4.2.5 that causes following exception:
>  FATAL [org.apache.ranger.audit.queue.AuditBatchQueue0] destination.SolrAuditDestination: Can't connect to Solr server. URL=[http://192.168.23.126:6083/solr/ranger_audits]
> java.lang.NoSuchFieldError: DEF_CONTENT_CHARSET
>         at org.apache.http.impl.client.DefaultHttpClient.setDefaultHttpParams(DefaultHttpClient.java:175)
>         at org.apache.http.impl.client.DefaultHttpClient.createHttpParams(DefaultHttpClient.java:158)
>         at org.apache.http.impl.client.AbstractHttpClient.getParams(AbstractHttpClient.java:448)
>         at org.apache.solr.client.solrj.impl.HttpClientUtil.setConnectionTimeout(HttpClientUtil.java:267)
>         at org.apache.solr.client.solrj.impl.LBHttpSolrClient.setConnectionTimeout(LBHttpSolrClient.java:460)
>         at org.apache.ranger.audit.destination.SolrAuditDestination.connect(SolrAuditDestination.java:116)
>         at org.apache.ranger.audit.destination.SolrAuditDestination.log(SolrAuditDestination.java:138)
>         at org.apache.ranger.audit.queue.AuditBatchQueue.runDoAs(AuditBatchQueue.java:320)
>         at org.apache.ranger.audit.queue.AuditBatchQueue$1.run(AuditBatchQueue.java:217)
>         at org.apache.ranger.audit.queue.AuditBatchQueue$1.run(AuditBatchQueue.java:215)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAs(Subject.java:356)
>         at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1594)
>         at org.apache.ranger.audit.queue.AuditBatchQueue.run(AuditBatchQueue.java:223)
>         at java.lang.Thread.run(Thread.java:745)



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