Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

SelectorInverseMapper needs to implement Mapper, otherwise things break. Noticed by Shawn Gervais.

Andrzej Bialecki0707f4ec39d1
diff --git a/src/java/org/apache/nutch/crawl/Generator.java b/src/java/org/apache/nutch/crawl/Generator.java
index f58b77a62..a226d9f3b 100644
--- a/src/java/org/apache/nutch/crawl/Generator.java
+++ b/src/java/org/apache/nutch/crawl/Generator.java
@@ -147,7 +147,7 @@ public class Generator extends Configured {
}
- public static class SelectorInverseMapper extends MapReduceBase {
+ public static class SelectorInverseMapper extends MapReduceBase implements Mapper {
public void map(WritableComparable key, Writable value, OutputCollector output, Reporter reporter) throws IOException {
SelectorEntry entry = (SelectorEntry)value;