From: <bi...@us...> - 2009-03-08 02:54:26
|
Revision: 2691 http://archive-access.svn.sourceforge.net/archive-access/?rev=2691&view=rev Author: binzino Date: 2009-03-08 02:54:12 +0000 (Sun, 08 Mar 2009) Log Message: ----------- Added info on start/stop scripts to INSTALL.txt and also clarified the parts of searcher-slave that need post-installation edits by the administrator. Modified Paths: -------------- tags/nutchwax-0_12_3/archive/INSTALL.txt tags/nutchwax-0_12_3/archive/src/etc/init.d/searcher-slave Modified: tags/nutchwax-0_12_3/archive/INSTALL.txt =================================================================== --- tags/nutchwax-0_12_3/archive/INSTALL.txt 2009-03-04 04:35:06 UTC (rev 2690) +++ tags/nutchwax-0_12_3/archive/INSTALL.txt 2009-03-08 02:54:12 UTC (rev 2691) @@ -1,6 +1,6 @@ INSTALL.txt -2008-12-18 +2009-03-06 Aaron Binns Table of Contents @@ -127,3 +127,48 @@ $ cd /opt $ tar xvfz nutchwax-0.12.3.tar.gz + +====================================================================== +Install start-up scripts +====================================================================== + +NutchWAX 0.12.3 comes with a Unix init.d script which can be used to +automatically start the searcher slaves for a multi-node search +configuration. + +Assuming you installed NutchWAX as + + /opt/nutchwax-0.12.3 + +the script is found at + + /opt/nutchwax-0.12.3/contrib/archive/etc/init.d/searcher-slave + +This script can be placed in /etc/init.d then added to the list of +startup scripts to run at bootup by using commands appropriate to your +Linux distribution. + +You must edit a few of the environment variables defined in the +'searcher-slave' specifying where NutchWAX is installed and where the +index(s) are deployed. In 'searcher-slave' you will find the: + + export NUTCH_HOME=TODO + export DEPLOYMENT_DIR=TODO + +edit those appropriately for your system. + + +The "master" in the multi-node search deployment is the NutchWAX +webapp running in a webapp server, such as Tomcat or Jetty. + +Jetty comes with a start/stop script appropriate for use as an init.d +script, similar to the 'searcher-slave' script described above. If you +use Jetty, create a symlink + + /etc/init.d/jetty.sh -> /opt/jetty/bin/jetty.sh + +Then add this script to the list of startup scripts to run at bootup +by using commands appropriate to your Linux distribution. + +Follow the instructions from Jetty on the deployment of the NutchWAX +webapp (nutch-1.0-dev.war) in the Jetty web application server. Modified: tags/nutchwax-0_12_3/archive/src/etc/init.d/searcher-slave =================================================================== --- tags/nutchwax-0_12_3/archive/src/etc/init.d/searcher-slave 2009-03-04 04:35:06 UTC (rev 2690) +++ tags/nutchwax-0_12_3/archive/src/etc/init.d/searcher-slave 2009-03-08 02:54:12 UTC (rev 2691) @@ -10,10 +10,11 @@ DESC="NutchWAX searcher slave" NAME="searcher-slave" -DAEMON="/3/search/nutchwax-0.12.2/bin/nutch org.archive.nutchwax.DistributedSearch\$Server 9000 /3/search/deploy" -NUTCH_HOME=/3/search/nutchwax-0.12.2 -JAVA_HOME=/usr +export NUTCH_HOME=TODO +export DEPLOYMENT_DIR=TODO +export JAVA_HOME=/usr export NUTCH_HEAPSIZE=2500 +DAEMON="${NUTCH_HOME}/bin/nutch org.archive.nutchwax.DistributedSearch\$Server 9000 ${DEPLOYMENT_DIR}" PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |