Hello, thanks a lot for your answer :)

So it should look like :

    <!-- A postCommit event is fired after every commit or optimize command
-->
    <listener event="postCommit" class="solr.RunExecutableListener">
      <str name="exe">snapshooter</str>
      <str name="dir"></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>

    <!-- 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"></str>
      <bool name="wait">true</bool>
    </listener>

and my scripts.conf

data_dir=/data/solr/book/data

what you think :)


Shalin Shekhar Mangar wrote:
> 
> On Tue, Sep 23, 2008 at 7:36 PM, sunnyfr <[EMAIL PROTECTED]> wrote:
> 
>>
>> My snapshooter too:
>>    <!-- A postCommit event is fired after every commit or optimize
>> command
>> -->
>>    <listener event="postCommit" class="solr.RunExecutableListener">
>>      <str name="exe">./data/solr/book/logs/snapshooter</str>
>>      <str name="dir">data/solr/book/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>
>> and everything is at the good place I think, my path are good ...
>>
>>
> Those paths look strange. Are you sure your snapshooter script is inside a
> directory named "logs"?
> 
> Try giving absolute paths to the snapshooter script in the "exe" section.
> Also, put the absolute path to the bin directory in the "dir" section and
> try again.
> 
> -- 
> Regards,
> Shalin Shekhar Mangar.
> 
> 
d
-- 
View this message in context: 
http://www.nabble.com/commit-tp19628500p19651757.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to