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

In Ranger Audit collection number of shards should be depending on the number of infra-solr nodes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 2.2.0
    • Ranger
    • None

    Description

      In Ranger while creating collection ranger_audits in solr the default no. of shards we configured is 1. It is configurable under ranger-admin-site.xml having porperty name "ranger.audit.solr.no.shards" .

      The number of shards initially should be depending on the number of solr live nodes. This can be achieve using SolrCloudClient object in SolrCollectionBootstrapper.java during the collection creation.

      SolrCloudClient.getClusterStateProvider().getLiveNodes().size() 

      Shards value will be visible as INFO in file catalina.out under ranger admin log dir for verification.

      Attachments

        1. RANGER-3248.patch
          3 kB
          Dhaval Shah

        Issue Links

          Activity

            People

              dhavalshah9131 Dhaval Shah
              dhavalshah9131 Dhaval Shah
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: