Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/java/org/commoncrawl/util/WarcRecordWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ public synchronized void write(Text key, WarcCapture value)
try {
targetUri = new URI(url);
} catch (URISyntaxException e) {
if (value.datum != null
if (value.datum != null // not a robots.txt
&& value.datum.getStatus() == CrawlDatum.STATUS_FETCH_SUCCESS) {
// if a successful capture, try to normalize the URL
String urlNorm = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
import org.apache.nutch.util.GZIPUtils;
import org.apache.nutch.util.MimeUtil;
import org.apache.nutch.util.DeflateUtils;
import org.apache.hadoop.util.StringUtils;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.io.IntWritable;
Expand Down
Loading