You should specify snapshooter by its full path, as in:

<str name="exe">/opt/solr/bin/snapshooter</str>

Bill


On 7/18/07, Matthew Runo <[EMAIL PROTECTED]> wrote:

I'm sorry about this guys, but I'm having the strangest path errors
with replication..

SEVERE: java.io.IOException: Cannot run program "snapshooter" (in
directory "/opt/solr/bin"): java.io.IOException: error=2, No such
file or directory

but.. cd /opt/solr/bin and the snapshooter file is there. And owned
by the tomcat user... so what's the deal? Obviously I'm overlooking
something.. but I'm not sure what..

Here's the solrconfig.conf file section


     <listener event="postCommit" class="solr.RunExecutableListener">
       <str name="exe">snapshooter</str>
       <str name="dir">/opt/solr/bin</str>
       <bool name="wait">true</bool>
       <arr name="args"> <str>-u tomcat5</str> <str>-d /opt/solr/
data</str> </arr>
       <arr name="env"></arr>
     </listener>

I'd think it would work. I guess, since SOLR runs in tomcat, I don't
really need the -u option in there.


+--------------------------------------------------------+
  | Matthew Runo
  | Zappos Development
  | [EMAIL PROTECTED]
  | 702-943-7833
+--------------------------------------------------------+



Reply via email to