Apache Nutch is an extensible and scalable web crawler
NUTCH-1215 UpdateDB should not require segment as input
Markus Jelsmacf2b782906d5
diff --git a/CHANGES.txt b/CHANGES.txtindex 76f5c613a..8775534f6 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -2,6 +2,8 @@ Nutch Change Log(trunk) Current Development:+* NUTCH-1215 UpdateDB should not require segment as input (markus)+* NUTCH-1383 IndexingFiltersChecker to show error message instead of null pointer exception (snagel)* NUTCH-1476 SegmentReader getStats should set parsed = -1 if no parsing took place (snagel)diff --git a/src/java/org/apache/nutch/crawl/CrawlDb.java b/src/java/org/apache/nutch/crawl/CrawlDb.javaindex 45880ed41..cf34143aa 100644--- a/src/java/org/apache/nutch/crawl/CrawlDb.java+++ b/src/java/org/apache/nutch/crawl/CrawlDb.java@@ -124,7 +124,6 @@ public class CrawlDb extends Configured implements Tool {JobConf job = new NutchJob(config);job.setJobName("crawldb " + crawlDb);-Path current = new Path(crawlDb, CURRENT_NAME);if (FileSystem.get(job).exists(current)) {FileInputFormat.addInputPath(job, current);@@ -169,7 +168,7 @@ public class CrawlDb extends Configured implements Tool {}public int run(String[] args) throws Exception {- if (args.length < 2) {+ if (args.length < 1) {System.err.println("Usage: CrawlDb <crawldb> (-dir <segments> | <seg1> <seg2> ...) [-force] [-normalize] [-filter] [-noAdditions]");System.err.println("\tcrawldb\tCrawlDb to update");System.err.println("\t-dir segments\tparent directory containing all segments to update from");