SolrCore Initialization Failures
paper: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Index locked
for write for core paperquestion: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Error
opening new searcher
I modified the configuration file today, and then I kept getting an error when I started it. It was the above error. I found it before. I need to delete the write.lock file in solrhome/mynode/data/index in the index file, and then data/ The logs in the tlog are deleted.
Because mine is a mac environment, even if I change it like this, it still doesn't work. When I restart, I still get an error. Then I delete all three files under the index. When I restart, solr automatically creates those three files. , the startup did not report an error, so the problem was solved