RE: Updates from Multiple JVM
Hi, The question is about Solr used in an embedded context (without using HTTP interface) and hence not using servlet containers. Thanks Regards, Priya Lance Lance wrote: Is the question whether or not you can run solr in two different servlet containers and index into the same data set? While we're on the topic, can you search with one and index with the other? Or do snapshots have to be in the middle? Lance -Original Message- From: LP [mailto:[EMAIL PROTECTED] Sent: Monday, August 06, 2007 12:06 AM To: solr-user@lucene.apache.org Subject: Updates from Multiple JVM Hi, Does Solr support updates to the same index from multiple JVM ? Thanks, Priya -- View this message in context: http://www.nabble.com/Updates-from-Multiple-JVM-tf4222574.html#a12011916 Sent from the Solr - User mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Updates-from-Multiple-JVM-tf4222574.html#a12051469 Sent from the Solr - User mailing list archive at Nabble.com.
Re: Updates from Multiple JVM
: Does Solr support updates to the same index from multiple JVM ? Solr recieves update commands via HTTP requests, so yes it can process updates from multiple JVMs, it can even process updates that come from applications written in languages other then java. -Hoss
Re: Updates from Multiple JVM
Thanks for the reply Hoss. I am using Solr Embedded and trying to update the same index through multiple JVM. I am using Solr 1.2. Initially I got the LockObtainFailedException which was solved after I appiled the Solr-240 patch. Now I am getting the following exception while trying to access the same index : java.io.IOException: read past EOF at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:89) at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:34) at org.apache.lucene.store.IndexInput.readInt(IndexInput.java:47) at org.apache.lucene.index.SegmentTermEnum.init(SegmentTermEnum.java:48) at org.apache.lucene.index.TermInfosReader.init(TermInfosReader.java:49) at org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:184) at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:157) at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:130) at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:1819) at org.apache.lucene.index.IndexWriter.maybeMergeSegments(IndexWriter.java:1763) at org.apache.lucene.index.IndexWriter.flushRamSegments(IndexWriter.java:1694) at org.apache.lucene.index.IndexWriter.maybeFlushRamSegments(IndexWriter.java:1686) at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:968) at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:947) at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:270) at UpdateSolr1.addDocument(UpdateSolr1.java:75) at UpdateSolr1.update(UpdateSolr1.java:39) at UpdateSolr1.main(UpdateSolr1.java:26) and sometimes I get the following exception java.lang.RuntimeException: java.io.FileNotFoundException: D:\apache-solr-1.2.0\ example\solr\data\index\_a.fnm (The system cannot find the file specified) at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:433) at org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandle r2.java:521) at UpdateSolr2.commit(UpdateSolr2.java:89) at UpdateSolr2.update(UpdateSolr2.java:49) at UpdateSolr2.main(UpdateSolr2.java:28) Caused by: java.io.FileNotFoundException: D:\apache-solr-1.2.0\example\solr\data \index\_a.fnm (The system cannot find the file specified) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.init(Unknown Source) at org.apache.lucene.store.FSDirectory$FSIndexInput$Descriptor.init(FS Directory.java:501) at org.apache.lucene.store.FSDirectory$FSIndexInput.init(FSDirectory.j ava:526) at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:440) at org.apache.lucene.index.FieldInfos.init(FieldInfos.java:57) at org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:1 76) at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:157) at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:139) at org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:194) at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfo s.java:610) at org.apache.lucene.index.IndexReader.open(IndexReader.java:184) at org.apache.lucene.index.IndexReader.open(IndexReader.java:148) at org.apache.solr.search.SolrIndexSearcher.init(SolrIndexSearcher.jav a:87) at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:424) ... 4 more I have attached the test programs UpdateSolr1 and UpdateSolr2. Please let me know if I am missing out anything as I am new to Solr. Thanks Regards, Priya LP wrote: Hi, Does Solr support updates to the same index from multiple JVM ? Thanks, Priya http://www.nabble.com/file/p12030523/SampleFiles.zip SampleFiles.zip -- View this message in context: http://www.nabble.com/Updates-from-Multiple-JVM-tf4222574.html#a12030523 Sent from the Solr - User mailing list archive at Nabble.com.
RE: Updates from Multiple JVM
Is the question whether or not you can run solr in two different servlet containers and index into the same data set? While we're on the topic, can you search with one and index with the other? Or do snapshots have to be in the middle? Lance -Original Message- From: LP [mailto:[EMAIL PROTECTED] Sent: Monday, August 06, 2007 12:06 AM To: solr-user@lucene.apache.org Subject: Updates from Multiple JVM Hi, Does Solr support updates to the same index from multiple JVM ? Thanks, Priya -- View this message in context: http://www.nabble.com/Updates-from-Multiple-JVM-tf4222574.html#a12011916 Sent from the Solr - User mailing list archive at Nabble.com.