Hi, there,

I used an absolute path for the "dir" param in the solrconfig.xml as below:

    <listener event="postCommit" class="solr.RunExecutableListener">
      <str name="exe">snapshooter</str>
      <str name="dir">/var/SolrHome/solr/bin</str>
      <bool name="wait">true</bool>
      <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
      <arr name="env"> <str>MYVAR=val1</str> </arr>
    </listener>

However, I got "snapshooter: not found"  exception thrown in catalina.out.
I don't see why this doesn't work. Anything I'm missing?


Many thanks,

-Hui

catalina.out logs:
=========
......
Sep 19, 2007 6:17:20 PM org.apache.solr.handler.XmlUpdateRequestHandlerupdate
INFO: added id={SOLR1000} in 67ms
Sep 19, 2007 6:17:20 PM org.apache.solr.core.SolrCore execute
INFO: /update  0 86
Sep 19, 2007 6:17:21 PM org.apache.solr.update.DirectUpdateHandler2 commit
INFO: start commit(optimize=false,waitFlush=false,waitSearcher=true)
Sep 19, 2007 6:17:21 PM org.apache.solr.update.DirectUpdateHandler2doDeletions
INFO: DirectUpdateHandler2 deleting and removing dups for 1 ids
Sep 19, 2007 6:17:21 PM org.apache.solr.search.SolrIndexSearcher <init>
INFO: Opening [EMAIL PROTECTED] DirectUpdateHandler2
Sep 19, 2007 6:17:21 PM org.apache.solr.update.DirectUpdateHandler2doDeletions
INFO: DirectUpdateHandler2 docs deleted=0
Sep 19, 2007 6:17:21 PM org.apache.solr.core.SolrException log
SEVERE: java.io.IOException: java.io.IOException: snapshooter: not found
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
        at java.lang.ProcessImpl.start(ProcessImpl.java:65)
        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:70)
        at org.apache.solr.core.RunExecutableListener.postCommit(
RunExecutableListener.java:97)
        at org.apache.solr.update.UpdateHandler.callPostCommitCallbacks(
UpdateHandler.java:99)
        at org.apache.solr.update.DirectUpdateHandler2.commit(
DirectUpdateHandler2.java:514)
        at org.apache.solr.handler.XmlUpdateRequestHandler.update(
XmlUpdateRequestHandler.java:214)
        at org.apache.solr.handler.XmlUpdateRequestHandler.handleRequestBody
(XmlUpdateRequestHandler.java:84)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(
RequestHandlerBase.java:77)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:658)
        at org.apache.solr.servlet.SolrDispatchFilter.execute(
SolrDispatchFilter.java:191)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(
SolrDispatchFilter.java:159)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
        at org.apache.catalina.valves.AccessLogValve.invoke(
AccessLogValve.java:526)
        at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:856)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
(Http11Protocol.java:7
44)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)


Sep 19, 2007 6:17:21 PM org.apache.solr.search.SolrIndexSearcher <init>
INFO: Opening [EMAIL PROTECTED] main
Sep 19, 2007 6:17:21 PM org.apache.solr.update.DirectUpdateHandler2 commit
INFO: end_commit_flush
Sep 19, 2007 6:17:21 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,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=
0.00,cumulative_inserts=0,cumulative_evictions=0}
Sep 19, 2007 6:17:21 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,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=
0.00,cumulative_inserts=0,cumulative_evictions=0}
Sep 19, 2007 6:17:21 PM org.apache.solr.search.SolrIndexSearcher warm
INFO: autowarming [EMAIL PROTECTED] main from [EMAIL PROTECTED] main
        queryResultCache{lookups=1,hits=0,hitratio=0.00
,inserts=1,evictions=0,size=1,cumulative_lookups=1,cumulative_hits=0,cumulative_hitratio=
0.00,cumulative_inserts=1,cumulative_evictions=0}
Sep 19, 2007 6:17:21 PM org.apache.solr.search.SolrIndexSearcher warm
INFO: autowarming result for [EMAIL PROTECTED] main
        queryResultCache{lookups=0,hits=0,hitratio=0.00
,inserts=1,evictions=0,size=1,cumulative_lookups=1,cumulative_hits=0,cumulative_hitratio=
0.00,cumulative_inserts=1,cumulative_evictions=0}
Sep 19, 2007 6:17:21 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,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=
0.00,cumulative_inserts=0,cumulative_evictions=0}
Sep 19, 2007 6:17:21 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,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=
0.00,cumulative_inserts=0,cumulative_evictions=0}
Sep 19, 2007 6:17:21 PM org.apache.solr.core.SolrCore registerSearcher
INFO: Registered new searcher [EMAIL PROTECTED] main
Sep 19, 2007 6:17:21 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,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=
0.00,cumulative_inserts=0,cumulative_evictions=0}
        queryResultCache{lookups=1,hits=0,hitratio=0.00
,inserts=1,evictions=0,size=1,cumulative_lookups=1,cumulative_hits=0,cumulative_hitratio=
0.00,cumulative_inserts=1,cumulative_evictions=0}
        documentCache{lookups=0,hits=0,hitratio=0.00
,inserts=0,evictions=0,size=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=
0.00,cumulative_inserts=0,cumulative_evictions=0}
Sep 19, 2007 6:17:21 PM org.apache.solr.handler.XmlUpdateRequestHandlerupdate
INFO: commit 0 60
Sep 19, 2007 6:17:21 PM org.apache.solr.core.SolrCore execute
INFO: /update  0 61




-- 
Regards,

-Hui

Reply via email to