Hi,
Here is the config info in solrconfig.xml:
<listener event="postCommit" class="solr.RunExecutableListener">
<str name="exe">/opt/solr-jetty/solr/bin/snapshooter</str>
<str name="dir">/opt/solr-jetty/solr/data</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>
<listener event="postOptimize" class="solr.RunExecutableListener">
<str name="exe">/opt/solr-jetty/solr/bin/snapshooter</str>
<str name="dir">/opt/solr-jetty/solr/data</str>
<bool name="wait">true</bool>
</listener>
Our system updates the solr index once daily. Mostly, the snapshooter works.
Last night, it did not work.
Thanks,
Feng