Apache Nutch is an extensible and scalable web crawler
NUTCH-1761 Crawl script fails to find job file if not started from inside bin dir (David Hosking, jnioche)
Julien Nioche2fd3821bfc1e
diff --git a/CHANGES.txt b/CHANGES.txtindex cd051105c..94aee87d8 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -2,6 +2,8 @@ Nutch Change LogNutch Current Development+* NUTCH-1761 Crawl script fails to find job file if not started from inside bin dir (David Hosking, jnioche)+* NUTCH-1603 ZIP parser complains about truncated PDF file (snagel)* NUTCH-1720 Duplicate lines in HttpBase.java (Walter Tietze via jnioche)diff --git a/src/bin/crawl b/src/bin/crawlindex c9b2b03d8..d869fb1e8 100644--- a/src/bin/crawl+++ b/src/bin/crawl@@ -69,16 +69,15 @@ numThreads=50#############################################-# determines whether mode based on presence of job file+bin=`dirname "$0"`+bin=`cd "$bin"; pwd`+# determines whether mode based on presence of job filemode=local-if [ -f ../*nutch-*.job ]; then+if [ -f ${bin}/../*nutch*.job ]; thenmode=distributedfi-bin=`dirname "$0"`-bin=`cd "$bin"; pwd`-# note that some of the options listed here could be set in the# corresponding hadoop site xml param filecommonOptions="-D mapred.reduce.tasks=$numTasks -D mapred.child.java.opts=-Xmx1000m -D mapred.reduce.tasks.speculative.execution=false -D mapred.map.tasks.speculative.execution=false -D mapred.compress.map.output=true"