You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by mahendra mahendra <ma...@yahoo.com> on 2009/03/04 02:19:09 UTC
Indexing issue
Hi,
I have two cores in different machines which are referring to the same data directory.
I have implemented this mechanism to have fault tolerance in place, if any of the machines are down the fault tolerance take care to index data from other machine.
Since two cores are referring to the same data directory some times reindexing getting failed and it is showing the below error.
HTTP Status 500 - java.io.FileNotFoundException: \\SolrShare\CollectionSet2\English\Auction\Auction0\index\_c.fdt (The system cannot find the file specified) java.lang.RuntimeException: java.io.FileNotFoundException: \\SolrShare\CollectionSet2\English\Auction\Auction0\index\_c.fdt (The system cannot find the file specified) at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:960) at org.apache.solr.core.SolrCore.<init>(SolrCore.java:470) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:323) at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:107) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1204) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:303) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:232) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at
I have changed lockType to simple and none, but still no luck…
Could you please correct me if I am doing wrong?
Thanks in advance!!
Regards,
Mahendra
Re: Indexing issue
Posted by Chris Hostetter <ho...@fucit.org>.
: I have two cores in different machines which are referring to the same data directory.
this isn't really considered a supported configuration ... both solr
instances are going to try and "own" the directory for updating, and
unless you do somethign special to ensure only one has control you are
going to have problems...
: below error. HTTP Status 500 - java.io.FileNotFoundException:
: \\SolrShare\CollectionSet2\English\Auction\Auction0\index\_c.fdt (The
: system cannot find the file specified) java.lang.RuntimeException:
: java.io.FileNotFoundException:
: \\SolrShare\CollectionSet2\English\Auction\Auction0\index\_c.fdt (The
...like this. one core is mucking with the files in a way the other core
doesn't know about.
: I have changed lockType to simple and none, but still no luck…
: Could you please correct me if I am doing wrong?
"none" isn't going to help you -- it's just going to make the problem
worse (two misconfigured instances of Solr in the same JVM could corrupt
eachother with lockType=none).
"simple" is only going to help you on some filesystems -- sicne you said
these two solr instances are running on different machines, that implies
NFS (or something like it) and SimpleFSLockFactory doesn't work reliably
in those cases.
If you want to get something like this working, you'll probably need
to setup your own network based lockType (instead of relying on the
filesystem)
-Hoss