Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1270

IndexOutOfBoundsException when test connection in Ranger-Solr-Plugin

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6.2
    • 0.7.0
    • None

    Description

      Hi All,
      I follow the steps to config Solr for Ranger Audit as below url: https://cwiki.apache.org/confluence/display/RANGER/Install+and+Configure+Solr+for+Ranger+Audits+-+Apache+Ranger+0.5, but when I try to create a policy, after I click on 'Test Connection' button, it always pop out an error 'IndexOutOfBoundsException'.
      I checked the logs and found below infornmation:
      at org.apache.ranger.services.solr.client.ServiceSolrClient.getCollectionList(ServiceSolrClient.java:109)
      at org.apache.ranger.services.solr.client.ServiceSolrClient.connectionTest(ServiceSolrClient.java:78)
      at org.apache.ranger.services.solr.client.ServiceSolrConnectionMgr.connectionTest(ServiceSolrConnectionMgr.java:56)
      at org.apache.ranger.services.solr.RangerServiceSolr.validateConfig(RangerServiceSolr.java:56)

      Question1: As I can see from the website, there is a step called 'config Solr with Kerberos for ranger', does that mean we must install Kerberos first?
      Question2: I go through the source codes, and found if 'ignoreCollectionList' is null, it will always pop out 'IndexOutOfBoundsException' when test connection.

      Thanks.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            zhangqiang2 Qiang Zhang
            zhangqiang2 Qiang Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment