Thanks, it works now.
regards, -Hui On 9/19/07, Pieter Berkel <[EMAIL PROTECTED] > wrote: > > If you don't need to pass any command line arguments to snapshooter, > remove > (or comment out) this line from solrconfig.xml: > > <arr name="args"> <str>arg1</str> <str>arg2</str> </arr> > > By the same token, if you're not setting environment variables either, > remove the following line as well: > > <arr name="env"> <str>MYVAR=val1</str> </arr> > > Once you alter / remove those two lines, snapshooter should function as > expected. > > cheers, > Piete > > > > On 20/09/2007, Yu-Hui Jin <[EMAIL PROTECTED]> wrote: > > > > Hi, Pieter, > > > > Thanks! Now the exception is gone. However, There's no snapshot file > > created in the data directory. Strangely, the snapshooter.log seems to > > complete successfully. Any idea what else I'm missing? > > > > $ cat var/SolrHome/solr/logs/snapshooter.log > > 2007/09/19 20:16:17 started by solruser > > 2007/09/19 20:16:17 command: /var/SolrHome/solr/bin/snapshooter arg1 > arg2 > > 2007/09/19 20:16:17 taking snapshot > > var/SolrHome/solr/data/snapshot.20070919201617 > > 2007/09/19 20:16:17 ended (elapsed time: 0 sec) > > > > Thanks, > > > > -Hui > > > > > > > > > > On 9/19/07, Pieter Berkel <[EMAIL PROTECTED]> wrote: > > > > > > 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 > > > > > > > > > > > > > > > -- > > Regards, > > > > -Hui > > > -- Regards, -Hui