Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

Merge pull request #323 from sebastian-nagel/NUTCH-2570-dedup-job-merge-crawldb

Sebastian Nagele41e55afcbfc
diff --cc src/java/org/apache/nutch/crawl/DeduplicationJob.java
index eaeb83581,12ebd3c8b..8887b4f8b
--- a/src/java/org/apache/nutch/crawl/DeduplicationJob.java
+++ b/src/java/org/apache/nutch/crawl/DeduplicationJob.java
@@@ -293,12 -292,11 +292,12 @@@ public class DeduplicationJob extends N
Job job = NutchJob.getInstance(getConf());
Configuration conf = job.getConfiguration();
- job.setJobName("Deduplication on " + crawldb);
+ job.setJobName("Deduplication on " + crawlDb);
conf.set(DEDUPLICATION_GROUP_MODE, group);
conf.set(DEDUPLICATION_COMPARE_ORDER, compareOrder);
+ job.setJarByClass(DeduplicationJob.class);
- FileInputFormat.addInputPath(job, new Path(crawldb, CrawlDb.CURRENT_NAME));
+ FileInputFormat.addInputPath(job, new Path(crawlDb, CrawlDb.CURRENT_NAME));
job.setInputFormatClass(SequenceFileInputFormat.class);
FileOutputFormat.setOutputPath(job, tempDir);