Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2523 UpdateHostDB blocks usage of plugins unintentionally (contributed by Yossi Tamari)

Sebastian Nagel31819b781ea7
diff --git a/src/java/org/apache/nutch/hostdb/UpdateHostDb.java b/src/java/org/apache/nutch/hostdb/UpdateHostDb.java
index c46f78879..8d2746981 100644
--- a/src/java/org/apache/nutch/hostdb/UpdateHostDb.java
+++ b/src/java/org/apache/nutch/hostdb/UpdateHostDb.java
@@ -88,16 +88,6 @@ public class UpdateHostDb extends Configured implements Tool {
job.setJarByClass(UpdateHostDb.class);
job.setJobName("UpdateHostDb");
- // Check whether the urlfilter-domainblacklist plugin is loaded
- if (filter && new String("urlfilter-domainblacklist").matches(conf.get("plugin.includes"))) {
- throw new Exception("domainblacklist-urlfilter must not be enabled");
- }
-
- // Check whether the urlnormalizer-host plugin is loaded
- if (normalize && new String("urlnormalizer-host").matches(conf.get("plugin.includes"))) {
- throw new Exception("urlnormalizer-host must not be enabled");
- }
-
FileSystem fs = hostDb.getFileSystem(conf);
Path old = new Path(hostDb, "old");
Path current = new Path(hostDb, "current");