Author: ab Date: Fri Aug 18 11:48:29 2006 New Revision: 432674 URL: http://svn.apache.org/viewvc?rev=432674&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/trunk/src/java/org/apache/nutch/indexer/IndexMerger.java Modified: lucene/nutch/trunk/src/java/org/apache/nutch/indexer/IndexMerger.java URL: http://svn.apache.org/viewvc/lucene/nutch/trunk/src/java/org/apache/nutch/indexer/IndexMerger.java?rev=432674&r1=432673&r2=432674&view=diff ============================================================================== --- lucene/nutch/trunk/src/java/org/apache/nutch/indexer/IndexMerger.java (original) +++ lucene/nutch/trunk/src/java/org/apache/nutch/indexer/IndexMerger.java Fri Aug 18 11:48:29 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++]);