Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2674 HostDb: dump shows wrong column headers - replace column headers `redirSum \t ok` with `notModified` to match actual dump of HostDb

Sebastian Nagel230d1a20bc07
diff --git a/src/java/org/apache/nutch/hostdb/ReadHostDb.java b/src/java/org/apache/nutch/hostdb/ReadHostDb.java
index a17a90b16..9a767ec2a 100644
--- a/src/java/org/apache/nutch/hostdb/ReadHostDb.java
+++ b/src/java/org/apache/nutch/hostdb/ReadHostDb.java
@@ -89,7 +89,7 @@ public class ReadHostDb extends Configured implements Tool {
public void map(Text key, HostDatum datum, Context context) throws IOException, InterruptedException {
if (fieldHeader && !dumpHomepages && !dumpHostnames) {
- context.write(new Text("hostname"), new Text("unfetched\tfetched\tgone\tredirTemp\tredirPerm\tredirSum\tok\tnumRecords\tdnsFail\tcnxFail\tsumFail\tscore\tlastCheck\thomepage\tmetadata"));
+ context.write(new Text("hostname"), new Text("unfetched\tfetched\tgone\tredirTemp\tredirPerm\tnotModified\tnumRecords\tdnsFail\tcnxFail\tsumFail\tscore\tlastCheck\thomepage\tmetadata"));
fieldHeader = false;
}