Hi,
 Iam trying to establish the SOLR Collection Distribution for my application
using Embedded Solr.
I have made the following entries in the scripts.conf file and included the
entries for the postCommit and postOptimize
operation in the solrconfig.xml file as follows:

scripts.conf

user=123
solr_hostname=localhost
solr_port=8983
rsyncd_port=18983
data_dir=C:\solr\data\data_tenantID_1
webapp_name=solr
master_host=192.111.222.555
master_data_dir=C:\solr\data\data_tenantID_1
master_status_dir=C:\solr\data\data_tenantID_1


solrconfig.xml

   <!-- A postCommit event is fired after every commit or optimize
ommand  -->
    <listener event="postCommit" class="solr.RunExecutableListener">
      <str name="exe">snapshooter</str>
      <str name="dir">solr/bin</str>
      <bool name="wait">false</bool>
          <!--
      <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
      <arr name="env"> <str>MYVAR=val1</str> </arr>
           -->
    </listener>

    <!-- A postOptimize event is fired only after every optimize command,
useful
         in conjunction with index distribution to only distribute optimized
indicies   -->
    <listener event="postOptimize" class="solr.RunExecutableListener">
      <str name="exe">snapshooter</str>
      <str name="dir">solr/bin</str>
      <bool name="wait">true</bool>
    </listener>

When i perform the add/update/delete operations i get the following error in
the stack trace...
Let me know if there are any other configuarations to be required.
Am i missing something?


Dec 13, 2007 4:19:29 PM org.apache.solr.update.SolrIndexWriter getDirectory
WARNING: No lockType configured for C:/solr/data/data_tenantID_1/index
assuming 'simple'
16:19:29,105  INFO EmbeddedSolr:1003 - Entered commit
Dec 13, 2007 4:19:29 PM org.apache.solr.update.DirectUpdateHandler2 commit
INFO: start commit(optimize=false,waitFlush=false,waitSearcher=true)
Dec 13, 2007 4:19:29 PM org.apache.solr.update.DirectUpdateHandler2
doDeletions
INFO: DirectUpdateHandler2 deleting and removing dups for 1 ids
Dec 13, 2007 4:19:29 PM org.apache.solr.search.SolrIndexSearcher <init>
INFO: Opening [EMAIL PROTECTED] DirectUpdateHandler2
Dec 13, 2007 4:19:29 PM org.apache.solr.update.DirectUpdateHandler2
doDeletions
INFO: DirectUpdateHandler2 docs deleted=1
Dec 13, 2007 4:19:29 PM org.apache.solr.common.SolrException log
SEVERE: java.io.IOException: CreateProcess: snapshooter error=2
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
        at java.lang.ProcessImpl.start(ProcessImpl.java:30)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
        at java.lang.Runtime.exec(Runtime.java:591)
        at
org.apache.solr.core.RunExecutableListener.exec(RunExecutableListener.java:7
3)
        at
org.apache.solr.core.RunExecutableListener.postCommit(RunExecutableListener.
java:100)
        at
org.apache.solr.update.UpdateHandler.callPostCommitCallbacks(UpdateHandler.j
ava:100)
        at
org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java
:550)
        at com.plateau.psa.impl.EmbeddedSolr.commit(EmbeddedSolr.java:1008)
        at
com.plateau.psa.impl.EmbeddedSolr.updateDocuments(EmbeddedSolr.java:877)
        at
com.plateau.psa.impl.SearchApplianceServiceImpl.updateDocuments(SearchApplia
nceServiceImpl.java:103)
        at
com.plateau.psa.impl.PlateauDocumentIndexingBackgroundJob.updateDocuments(Pl
ateauDocumentIndexingBackgroundJob.java:273)
        at
com.plateau.psa.impl.PlateauDocumentIndexingBackgroundJob.processDocumentInd
exingRequests(PlateauDocumentIndexingBackgroundJob.java:223)
        at
com.plateau.psa.impl.PlateauDocumentIndexingBackgroundJob.getDocumentIndexin
gRequestsFromQueueToProcess(PlateauDocumentIndexingBackgroundJo
b.java:167)
        at
com.plateau.psa.impl.PlateauDocumentIndexingBackgroundJob.processDocumentInd
exingRequests(PlateauDocumentIndexingBackgroundJob.java:130)
        at
com.plateau.psa.impl.PlateauDocumentIndexingBackgroundJob.execute(PlateauDoc
umentIndexingBackgroundJob.java:110)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
        at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520
)

Dec 13, 2007 4:19:29 PM org.apache.solr.search.SolrIndexSearcher <init>
INFO: Opening [EMAIL PROTECTED] main
Dec 13, 2007 4:19:29 PM org.apache.solr.update.DirectUpdateHandler2 commit
INFO: end_commit_flush
Dec 13, 2007 4:19:29 PM org.apache.solr.search.SolrIndexSearcher warm
INFO: autowarming [EMAIL PROTECTED] main from [EMAIL PROTECTED] main

filterCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,cumu
lative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumula
tive_inserts=0,cumulative_evictions=0}
Dec 13, 2007 4:19:29 PM org.apache.solr.search.SolrIndexSearcher warm
INFO: autowarming result for [EMAIL PROTECTED] main

filterCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,cumu
lative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumula
tive_inserts=0,cumulative_evictions=0}
Dec 13, 2007 4:19:29 PM org.apache.solr.search.SolrIndexSearcher warm
INFO: autowarming [EMAIL PROTECTED] main from [EMAIL PROTECTED] main

queryResultCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0
,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,c
umulative_inserts=0,cumulative_evictions=0}
Dec 13, 2007 4:19:29 PM org.apache.solr.search.SolrIndexSearcher warm
INFO: autowarming result for [EMAIL PROTECTED] main

queryResultCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0
,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,c
umulative_inserts=0,cumulative_evictions=0}
Dec 13, 2007 4:19:29 PM org.apache.solr.search.SolrIndexSearcher warm
INFO: autowarming [EMAIL PROTECTED] main from [EMAIL PROTECTED] main

documentCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,cu
mulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumu
lative_inserts=0,cumulative_evictions=0}
Dec 13, 2007 4:19:29 PM org.apache.solr.search.SolrIndexSearcher warm
INFO: autowarming result for [EMAIL PROTECTED] main

documentCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,cu
mulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumu
lative_inserts=0,cumulative_evictions=0}
Dec 13, 2007 4:19:29 PM org.apache.solr.core.SolrCore registerSearcher
INFO: Registered new searcher [EMAIL PROTECTED] main
Dec 13, 2007 4:19:29 PM org.apache.solr.search.SolrIndexSearcher close
INFO: Closing [EMAIL PROTECTED] main

filterCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,cumu
lative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumula
tive_inserts=0,cumulative_evictions=0}

queryResultCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0
,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,c
umulative_inserts=0,cumulative_evictions=0}

documentCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,cu
mulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumu
lative_inserts=0,cumulative_evictions=0}
16:19:29,433  INFO EmbeddedSolr:1017 - Commited the Document
16:19:29,433  INFO EmbeddedSolr:1018 - Exited commit
16:19:29,433 DEBUG EmbeddedSolr:879 - Updated 1 no. of Documents
Dec 13, 2007 4:19:29 PM org.apache.solr.update.DirectUpdateHandler2 close
INFO: closing
DirectUpdateHandler2{commits=1,autocommits=0,optimizes=0,docsPending=0,delet
esPending=0,adds=0,deletesById=0,deletesByQuery=0,errors=0,c
umulative_adds=1,cumulative_deletesById=0,cumulative_deletesByQuery=0,cumula
tive_errors=0,docsDeleted=1}
Dec 13, 2007 4:19:29 PM org.apache.solr.update.DirectUpdateHandler2 close
INFO: closed
DirectUpdateHandler2{commits=1,autocommits=0,optimizes=0,docsPending=0,delet
esPending=0,adds=0,deletesById=0,deletesByQuery=0,errors=0,cu
mulative_adds=1,cumulative_deletesById=0,cumulative_deletesByQuery=0,cumulat
ive_errors=0,docsDeleted=1}
16:19:29,449  INFO EmbeddedSolr:895 - Exited updateDocuments




Regards,
Dilip TS

Reply via email to