See this recent thread for some helpful info:
http://www.nabble.com/solr-doesn%27t-find-exe-in-postCommit-event-tf4264879.html#a12167792

You'll probably want to configure your exe with an absolute path rather than
the dir:

      <str name="exe">/var/SolrHome/solr/bin/snapshooter</str>
      <str name="dir">.</str>

In order to get the snapshooter working correctly.

cheers,
Piete



On 20/09/2007, Yu-Hui Jin <[EMAIL PROTECTED]> wrote:
>
> 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
>

Reply via email to