Apache Nutch is an extensible and scalable web crawler
NUTCH-829 duplicate hadoop temp files
Tejas Patilca8a2fdbd7d0
diff --git a/CHANGES.txt b/CHANGES.txtindex 012b98422..ed3a54afb 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -2,6 +2,8 @@ Nutch Change Log(trunk): Current Development+* NUTCH-829 duplicate hadoop temp files (Mike Baranczak, lewismc, tejasp)+* NUTCH-1501 Harmonize behavior of parsechecker and indexchecker (snagel + lewismc)* NUTCH-1031 Delegate parsing of robots.txt to crawler-commons (tejasp)diff --git a/src/java/org/apache/nutch/crawl/Generator.java b/src/java/org/apache/nutch/crawl/Generator.javaindex 907842131..777e67efd 100644--- a/src/java/org/apache/nutch/crawl/Generator.java+++ b/src/java/org/apache/nutch/crawl/Generator.java@@ -492,7 +492,7 @@ public class Generator extends Configured implements Tool {throws IOException {Path tempDir = new Path(getConf().get("mapred.temp.dir", ".") + "/generate-temp-"- + System.currentTimeMillis());+ + java.util.UUID.randomUUID().toString());Path lock = new Path(dbDir, CrawlDb.LOCK_NAME);FileSystem fs = FileSystem.get(getConf());@@ -582,7 +582,7 @@ public class Generator extends Configured implements Tool {if (getConf().getBoolean(GENERATE_UPDATE_CRAWLDB, false)) {// update the db from tempDirPath tempDir2 = new Path(getConf().get("mapred.temp.dir", ".") + "/generate-temp-"- + System.currentTimeMillis());+ + java.util.UUID.randomUUID().toString());job = new NutchJob(getConf());job.setJobName("generate: updatedb " + dbDir);