Created 03-26-2018 05:17 AM
Looks like updating "Max Retention Days" from Ambari Web UI does not update not only existing docs (which is expected) but also newly added docs.
I unloaded the ranger audit core multiple times and restarted Ranger to recreate the collection, then it eventually worked.
Is this expected behaviour? If so, why Ambari doesn't unload (or reload if that should work)? (a bug?)
Created 03-26-2018 06:33 PM
hi, @Hajime
If you are restarting Ranger it should upload a new solrconfig.xml to zookeeper with the changed max retention days.
Then maybe you can reload the collection with Solr API (RELOAD action on collections, see: https://lucene.apache.org/solr/guide/6_6/collections-api.html) ,
Created 03-26-2018 06:33 PM
hi, @Hajime
If you are restarting Ranger it should upload a new solrconfig.xml to zookeeper with the changed max retention days.
Then maybe you can reload the collection with Solr API (RELOAD action on collections, see: https://lucene.apache.org/solr/guide/6_6/collections-api.html) ,
Created 03-26-2018 09:44 PM
Hi @Olivér Szabó,
I see the new dates in solrconfig.xml in the Zookeeper, but newly added docs still used previous days, so that I posted this question.
After unloading ranger_audit core multiple times, it eventually worked.
But I was wondering if unload/reload is required? If yes, why Ambari doesn't do that?
Created 03-26-2018 10:01 PM
Seems like it's required. I guess mostly that was used for bootstrapping.
How that solrconfig.xml file changes ... it's not that clear we already have the collection created or we are just doing an update.
Then i think in the future upload configs + create / reload collections should be moved on Ranger side (background bootstrap process), then Ambari should just configure the files, not to do anything with Solr API from agent side.