Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

Add a default constructor to avoid failure when JobConf tries to instanciate ParseSegment on parse command. (Just a workaround for HADOOP-29 issue).

Jerome Charron21907ab55f67
diff --git a/src/java/org/apache/nutch/parse/ParseSegment.java b/src/java/org/apache/nutch/parse/ParseSegment.java
index 4d2d493da..b44af5aa3 100644
--- a/src/java/org/apache/nutch/parse/ParseSegment.java
+++ b/src/java/org/apache/nutch/parse/ParseSegment.java
@@ -35,7 +35,11 @@ public class ParseSegment extends Configured implements Mapper, Reducer {
public static final Logger LOG =
LogFormatter.getLogger(Parser.class.getName());
-
+
+ public ParseSegment() {
+ this(null);
+ }
+
public ParseSegment(Configuration conf) {
super(conf);
}