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++]);



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nutch-cvs mailing list
Nutch-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nutch-cvs

Reply via email to