Apache Nutch is an extensible and scalable web crawler
NUTCH-2366 Deprecated Job constructor in hostdb/ReadHostDb.java\
Markus Jelsma3926910e145d
diff --git a/src/java/org/apache/nutch/hostdb/ReadHostDb.java b/src/java/org/apache/nutch/hostdb/ReadHostDb.javaindex ab3ec0c3e..5b0850405 100644--- a/src/java/org/apache/nutch/hostdb/ReadHostDb.java+++ b/src/java/org/apache/nutch/hostdb/ReadHostDb.java@@ -173,7 +173,8 @@ public class ReadHostDb extends Configured implements Tool {conf.setBoolean("mapreduce.fileoutputcommitter.marksuccessfuljobs", false);conf.set("mapred.textoutputformat.separator", "\t");- Job job = new Job(conf, "ReadHostDb");+ Job job = Job.getInstance(conf);+ job.setJobName("ReadHostDb");job.setJarByClass(ReadHostDb.class);FileInputFormat.addInputPath(job, new Path(hostDb, "current"));@@ -239,4 +240,4 @@ public class ReadHostDb extends Configured implements Tool {return -1;}}-}\ No newline at end of file+}