Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-904 - "-resume" option is always processed as "false" in FetcherJob. Contributed by Faruk Berksöz.

Tacettin Guney92a00fd2bc69
diff --git a/CHANGES.txt b/CHANGES.txt
index 11c2a945d..14ec9344c 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,9 @@ Nutch Change Log
Release 2.0 - Current Development
+* NUTCH-904 "-resume" option is always processed as "false" in FetcherJob
+ (Faruk Berksöz via dogacan)
+
* NUTCH-905 Configurable file protocol parent directory crawling (Thorsten Scherler, mattmann, ab)
* NUTCH-716 Make subcollection index filed multivalued (Dmitry Lihachev via jnioche)
diff --git a/src/java/org/apache/nutch/fetcher/FetcherJob.java b/src/java/org/apache/nutch/fetcher/FetcherJob.java
index 9bc771061..3d6fdcd82 100644
--- a/src/java/org/apache/nutch/fetcher/FetcherJob.java
+++ b/src/java/org/apache/nutch/fetcher/FetcherJob.java
@@ -79,7 +79,7 @@ public class FetcherJob implements Tool {
@Override
protected void setup(Context context) {
Configuration conf = context.getConfiguration();
- shouldContinue = conf.getBoolean("job.continue", false);
+ shouldContinue = conf.getBoolean(RESUME_KEY, false);
crawlId = new Utf8(conf.get(GeneratorJob.CRAWL_ID, Nutch.ALL_CRAWL_ID_STR));
}