Author: cutting Date: Wed Jul 13 11:44:39 2005 New Revision: 216217 URL: http://svn.apache.org/viewcvs?rev=216217&view=rev Log: Remove any files left by previous attempts at this task.
Modified: lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/ReduceTaskRunner.java Modified: lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/ReduceTaskRunner.java URL: http://svn.apache.org/viewcvs/lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/ReduceTaskRunner.java?rev=216217&r1=216216&r2=216217&view=diff ============================================================================== --- lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/ReduceTaskRunner.java (original) +++ lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/ReduceTaskRunner.java Wed Jul 13 11:44:39 2005 @@ -36,6 +36,7 @@ /** Assemble all of the map output files. */ public void prepare() throws IOException { ReduceTask task = ((ReduceTask)getTask()); + MapOutputFile.removeAll(task.getTaskId()); // cleanup from failures String[] mapTaskIds = task.getMapTaskIds(); getTracker().progress(task.getTaskId(), new FloatWritable(0.0f/3.0f));