Apache Nutch is an extensible and scalable web crawler
NUTCH-1153 LinkRank not to log all keys and not to write Hadoop _SUCCESS file
Markus Jelsma1f666a3276c8
diff --git a/CHANGES.txt b/CHANGES.txtindex 64a0e607f..753f85022 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -1,5 +1,7 @@Nutch Change Log+* NUTCH-1153 LinkRank not to log all keys and not to write Hadoop _SUCCESS file (markus)+Release 1.4 - 11/4/2011* NUTCH-1195 Add Solr 4x (trunk) example schema (ab)diff --git a/src/java/org/apache/nutch/scoring/webgraph/LinkRank.java b/src/java/org/apache/nutch/scoring/webgraph/LinkRank.javaindex 78e0cd823..0674c881f 100644--- a/src/java/org/apache/nutch/scoring/webgraph/LinkRank.java+++ b/src/java/org/apache/nutch/scoring/webgraph/LinkRank.java@@ -105,6 +105,7 @@ public class LinkRankcounter.setOutputValueClass(LongWritable.class);counter.setNumReduceTasks(1);counter.setOutputFormat(TextOutputFormat.class);+ counter.setBoolean("mapreduce.fileoutputcommitter.marksuccessfuljobs", false);// run the counter job, outputs to a single reduce task and fileLOG.info("Starting link counter job");@@ -162,6 +163,7 @@ public class LinkRankinitializer.setOutputKeyClass(Text.class);initializer.setOutputValueClass(Node.class);initializer.setOutputFormat(MapFileOutputFormat.class);+ initializer.setBoolean("mapreduce.fileoutputcommitter.marksuccessfuljobs", false);// run the initializerLOG.info("Starting initialization job");@@ -213,6 +215,7 @@ public class LinkRankinverter.setOutputKeyClass(Text.class);inverter.setOutputValueClass(LinkDatum.class);inverter.setOutputFormat(SequenceFileOutputFormat.class);+ inverter.setBoolean("mapreduce.fileoutputcommitter.marksuccessfuljobs", false);// run the inverter jobLOG.info("Starting inverter job");@@ -262,6 +265,7 @@ public class LinkRankanalyzer.setOutputKeyClass(Text.class);analyzer.setOutputValueClass(Node.class);analyzer.setOutputFormat(MapFileOutputFormat.class);+ analyzer.setBoolean("mapreduce.fileoutputcommitter.marksuccessfuljobs", false);LOG.info("Starting analysis job");try {@@ -537,7 +541,7 @@ public class LinkRankfloat linkRankScore = (1 - this.dampingFactor)+ (this.dampingFactor * totalInlinkScore);- LOG.info(url + ": score: " + linkRankScore + " num inlinks: "+ LOG.debug(url + ": score: " + linkRankScore + " num inlinks: "+ numInlinks + " iteration: " + itNum);// store the score in a temporary NodeDb