JiaLiangC commented on PR #263:
URL: https://github.com/apache/ranger/pull/263#issuecomment-2478028921

   @kumaab @rameeshm 
   
   In the Ranger Solr setup, due to the following configuration in [this 
file](https://github.com/apache/ranger/blob/master/security-admin/contrib/solr_for_audit_setup/conf/solrconfig.xml.j2):
   
   ```xml
   <searchComponent name="elevator" class="solr.QueryElevationComponent">
       <!-- pick a fieldType to analyze queries -->
       <str name="queryFieldType">string</str>
       <str name="config-file">elevate.xml</str>
   </searchComponent>
   ```
   
   If the `elevate.xml` file is missing, when Ranger uses the API to create the 
collection during Solr setup, an error will occur:
   
   ```
   ERROR [   ] org.apache.solr.common.SolrException (SolrException.java:164) - 
org.apache.solr.common.SolrException: Error CREATEing SolrCore 
'ranger_audits_shard1_replica_n1': Unable to create core 
[ranger_audits_shard1_replica_n1] Caused by: Can't find resource 'elevate.xml' 
in classpath or '/configs/ranger_audits', cwd=/usr/lib/ambari-infra-solr/server
   org.apache.solr.common.SolrException: Error CREATEing SolrCore 
'ranger_audits_shard1_replica_n1': Unable to create core 
[ranger_audits_shard1_replica_n1] Caused by: Can't find resource 'elevate.xml' 
in classpath or '/configs/ranger_audits', cwd=/usr/lib/ambari-infra-solr/server
   ```
   
   So, can I submit a PR to fix this issue?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to