Author: markus
Date: Tue Oct 23 09:45:29 2012
New Revision: 1401225
URL: http://svn.apache.org/viewvc?rev=1401225&view=rev
Log:
NUTCH-1215 UpdateDB should not require segment as input
Modified:
nutch/trunk/CHANGES.txt
nutch/trunk/src/java/org/apache/nutch/crawl/CrawlDb.java
Modified: nutch/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/nutch/trunk/CHANGES.txt?rev=1401225&r1=1401224&r2=1401225&view=diff
==============================================================================
--- nutch/trunk/CHANGES.txt (original)
+++ nutch/trunk/CHANGES.txt Tue Oct 23 09:45:29 2012
@@ -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)
Modified: nutch/trunk/src/java/org/apache/nutch/crawl/CrawlDb.java
URL:
http://svn.apache.org/viewvc/nutch/trunk/src/java/org/apache/nutch/crawl/CrawlDb.java?rev=1401225&r1=1401224&r2=1401225&view=diff
==============================================================================
--- nutch/trunk/src/java/org/apache/nutch/crawl/CrawlDb.java (original)
+++ nutch/trunk/src/java/org/apache/nutch/crawl/CrawlDb.java Tue Oct 23
09:45:29 2012
@@ -124,7 +124,6 @@ public class CrawlDb extends Configured
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
}
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");