Author: ab Date: Fri Aug 18 11:50:00 2006 New Revision: 432675 URL: http://svn.apache.org/viewvc?rev=432675&view=rev Log: NUTCH-341 - if -workingdir is specified, always create a unique subdir. Also, use unique directory names to allow multiple IndexMergers to run simultaneously.
Modified: lucene/nutch/branches/branch-0.8/src/java/org/apache/nutch/indexer/IndexMerger.java Modified: lucene/nutch/branches/branch-0.8/src/java/org/apache/nutch/indexer/IndexMerger.java URL: http://svn.apache.org/viewvc/lucene/nutch/branches/branch-0.8/src/java/org/apache/nutch/indexer/IndexMerger.java?rev=432675&r1=432674&r2=432675&view=diff ============================================================================== --- lucene/nutch/branches/branch-0.8/src/java/org/apache/nutch/indexer/IndexMerger.java (original) +++ lucene/nutch/branches/branch-0.8/src/java/org/apache/nutch/indexer/IndexMerger.java Fri Aug 18 11:50:00 2006 @@ -118,13 +118,13 @@ // Configuration conf = NutchConfiguration.create(); FileSystem fs = FileSystem.get(conf); - Path workDir = new Path("indexmerger"); + Path workDir = new Path("indexmerger-" + System.currentTimeMillis()); List indexDirs = new ArrayList(); int i = 0; if ("-workingdir".equals(args[i])) { i++; - workDir = new Path(args[i++]); + workDir = new Path(args[i++], "indexmerger-" + System.currentTimeMillis()); } Path outputIndex = new Path(args[i++]);