[
https://issues.apache.org/jira/browse/NUTCH-2674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16713085#comment-16713085
]
ASF GitHub Bot commented on NUTCH-2674:
---------------------------------------
sebastian-nagel closed pull request #407: NUTCH-2674 HostDb: dump shows wrong
column headers
URL: https://github.com/apache/nutch/pull/407
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
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 void setup(Context context) {
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;
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> HostDb: dump shows wrong column headers
> ---------------------------------------
>
> Key: NUTCH-2674
> URL: https://issues.apache.org/jira/browse/NUTCH-2674
> Project: Nutch
> Issue Type: Bug
> Components: hostdb
> Affects Versions: 1.15
> Reporter: Sebastian Nagel
> Priority: Trivial
> Fix For: 1.16
>
>
> The header line of the HostDb dump is wrong, it should show the fields
> returned by {{HostDatum.toString()}} used for the dump. In detail, the column
> headers {{redirSum}} and {{ok}} should be replaced by {{notModified}}.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)