Starting cb-solr: [ OK ] Waiting for cb-solr to build the terms dictionary. Depending on index size this may take a while.............................
[ERROR] - from org.apache.solr.core.SolrCore in main null:org.apache.solr.common.SolrException: Found multiple cores with the name [cbevents_<timestamp_1>], with instancedirs [/var/cb/data/cbevents/cbevents_<timestamp_2>] and [/var/cb/data/cbevents/cbevents_<timestamp_3>] at org.apache.solr.core.CoreContainer.checkForDuplicateCoreNames(CoreContainer.java:537)
find /var/cb/data/solr/cbevents/ -type f -name core.properties -exec grep -H 'name=writer' {} \; | awk -F '/' '{print$7}'
for i in 'cbevents_timestamp_1'; do sed -i "s/writer/$i/" /var/cb/data/solr/cbevents/$i/core.properties
Example single core change.
for i in 'cbevents_2025_03_12_0114'; do sed "s/writer/$i/" /var/cb/data/solr/cbevents/$i/core.properties; done
Example of multiple core change.
for i in 'cbevents_2025_03_12_0114' 'cbevents_2025_03_31_1332'; do sed "s/writer/$i/" /var/cb/data/solr/cbevents/$i/core.properties; done
du -sh /var/cb/data/solr/cbevents/* | sort -rh | grep -v 'reader'
rm -rf /var/cb/data/solr/cbevents_<timestamp>