Apache Nutch is an extensible and scalable web crawler
NUTCH-1029 ReadDB throws EOFException
Markus Jelsma6f3c6e5daa91
diff --git a/CHANGES.txt b/CHANGES.txtindex 0494a9335..f054cde2a 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -2,6 +2,8 @@ Nutch Change LogRelease 1.4 - Current development+* NUTCH-1029 Readdb throws EOFException (markus)+* NUTCH-1036 Solr jobs should increment counters in Reporter (markus)* NUTCH-987 Support HTTP auth for Solr communication (markus)diff --git a/src/java/org/apache/nutch/crawl/CrawlDbReader.java b/src/java/org/apache/nutch/crawl/CrawlDbReader.javaindex 0ba44afc8..24642410c 100644--- a/src/java/org/apache/nutch/crawl/CrawlDbReader.java+++ b/src/java/org/apache/nutch/crawl/CrawlDbReader.java@@ -313,6 +313,9 @@ public class CrawlDbReader implements Closeable {job.setOutputKeyClass(Text.class);job.setOutputValueClass(LongWritable.class);+ // https://issues.apache.org/jira/browse/NUTCH-1029+ job.setBoolean("mapreduce.fileoutputcommitter.marksuccessfuljobs", false);+JobClient.runJob(job);// reading the result@@ -464,7 +467,7 @@ public class CrawlDbReader implements Closeable {job.setOutputValueClass(Text.class);job.setNumReduceTasks(1); // create a single file.-+JobClient.runJob(job);FileSystem fs = FileSystem.get(config);fs.delete(tempDir, true);