Apache Solr processing error, cannot be retrieved

Asked 2 years ago, Updated 2 years ago, 36 views

After indexing using Apache Solr in batch processing, search is not possible.

(1) After comparing the logs of normal and abnormal conditions, it was found that the following process could not be performed.
SimplePostTool:COMMITTING Solr index changes..

Normal

../indexerdata/TargetXml/registr/JPH_XXXX/bangoxx.xml
SimplePostTool: version 1.2
SimplePostTool: POSTing files to http://localhost:8983/solr/update..
SimplePostTool: POSTing file bangoxx.xml
SimplePostTool:COMMITTING Solr index changes..

Abnormal conditions

../indexerdata/TargetXml/registr/JPH_XXXX/bangoxx.xml
SimplePostTool: version 1.2
SimplePostTool: POSTing files to http://localhost:8983/solr/update..
SimplePostTool: POSTing file bangoxx.xml

(2) http://localhost:89/p:a>.

HTTP ERROR:500
Severe errors in solr configuration.

Check your log files for more detailed information on what may be wrong.

If you want solr to continue after configuration errors, change: 

 <abortOnConfigurationError>false</abortOnConfigurationError>

in null

-------------------------------------------------------------
java.lang.RuntimeException: java.io.FileNotFoundException: no segments* file found in org.apache.lucene.store.NIOFSDirectory@/opt/FTS/indexerindex/index:files:
    at org.apache.solr.core.SolrCore.getSearcher (SolrCore.java: 1068)
    at org.apache.solr.core.SolrCore.<init> (SolrCore.java:579)
    at org.apache.solr.core.CoreContainer$Initialize(CoreContainer.java:137)
    at org.apache.solr.servlet.SolrDispatchFilter.init (SolrDispatchFilter.java:83)
    at org.mortbay.jetty.servlet.FilterHolder.doStart (FilterHolder.java:99)
    at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40)
    at org.mortbay.jetty.servlet.ServletHandler.initialize (ServletHandler.java:594)
    at org.mortbay.jetty.servlet.Context.startContext (Context.java:139)
    at org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1218)
    at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:500)
    at org.mortbay.jetty.webapp.WebAppContext.doStart (WebAppContext.java:448)
    at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40)
    at org.mortbay.jetty.handler.HandlerCollection.doStart (HandlerCollection.java:147)
    at org.mortbay.jetty.handler.ContextHandlerCollection.doStart (ContextHandlerCollection.java:161)
    at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40)
    at org.mortbay.jetty.handler.HandlerCollection.doStart (HandlerCollection.java:147)
    at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40)
    at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117)
    at org.mortbay.jetty.Server.doStart (Server.java:210)
    at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40)
    at org.mortbay.xml.XmlConfiguration.main (XmlConfiguration.java:929)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke (Method.java:597)
    at org.mortbay.start.Main.invokeMain (Main.java:183)
    at org.mortbay.start.Main.start (Main.java:497)
    at org.mortbay.start.Main.main (Main.java:115)
Caused by: java.io.FileNotFoundException: no segments * file found in org.apache.lucene.store.NIOFSDirectory@/opt/FTS/indexerindex/index: files:
    at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run (SegmentInfos.java:634)
    at org.apache.lucene.index.DirectoryReader.open (DirectoryReader.java:69)
    at org.apache.lucene.index.IndexReader.open (IndexReader.java:476)
    at org.apache.lucene.index.IndexReader.open (IndexReader.java:403)
    at org.apache.solr.core.StandardIndexReaderFactory.newReader(StandardIndexReaderFactory.java:38)
    at org.apache.solr.core.SolrCore.getSearcher (SolrCore.java:1057)
    ... 27 more   

RequestURI=/solr/admin/    
Powered by Jetty://

(3) Remove the empty /opt/FTS/indexerindex/index and restart the server
  We have resolved the above (1)(2) issue, but we are still unable to search.

(4) Segments* file found to be in two locations
·/opt/FTS/indexerindex/index/segments*--- New (small) corresponding to >(3)
·/opt/FTS/index1/index/segments*---> Created a few years ago (large)
 
(5) The problem in (4) caused a new error in the solr search index update process.
/opt/FTS/indexerindex/index/_4f.fdx 存在されていないですが・・ HTTP ERROR: 500 Severe errors in solr configuration. Check your log files for more detailed information on what may be wrong. If you want solr to continue after configuration errors, change: false in null ------------------------------------------------------------- java.lang.RuntimeException: java.io.FileNotFoundException: /opt/FTS/indexerindex/index/_4f.fdx (No such file or directory) at org.apache.solr.core.SolrCore.getSearcher (SolrCore.java:1068)...

I thought it was necessary to integrate the segments* files in two places, so I tried various things.
  Finally,
  Solr Set index directory and re-index all problems and
  You can now search.

Steps:
(1) Remove solr default index directory /opt/FTS/indexerindex
(2) Create a link to the real index directory /opt/FTS/index1 in indexerindex
(3) Recreate solr search index

java solr

2022-09-30 14:48

1 Answers

Can you read Japanese?

I think it's probably the same problem as this one.

https://stackoverflow.com/questions/3938691/how-to-recover-from-solr-deleted-index-files

The directory /opt/FTS/indexerindex/index is corrupted or empty, so try deleting it.Of course, if you need any information, please back it up.


2022-09-30 14:48

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.