Package org.apache.nutch.crawl
Class CrawlDbMerger
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.nutch.crawl.CrawlDbMerger
- All Implemented Interfaces:
Configurable,Tool
This tool merges several CrawlDb-s into one, optionally filtering URLs
through the current URLFilters, to skip prohibited pages.
It's possible to use this tool just for filtering - in that case only one CrawlDb should be specified in arguments.
If more than one CrawlDb contains information about the same URL, only the
most recent version is retained, as determined by the value of
CrawlDatum.getFetchTime(). However, all
metadata information from all versions is accumulated, with newer values
taking precedence over older values.
- Author:
- Andrzej Bialecki
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Constructor Details
-
CrawlDbMerger
public CrawlDbMerger() -
CrawlDbMerger
-
-
Method Details
-
merge
- Throws:
Exception
-
createMergeJob
public static Job createMergeJob(Configuration conf, Path output, boolean normalize, boolean filter) throws IOException - Throws:
IOException
-
main
Run the tool.- Parameters:
args- job parameters- Throws:
Exception- if there is an issue executing this job
-
run
-