hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1212581 - /hbase/trunk/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat.java
Date Fri, 09 Dec 2011 19:08:12 GMT
Author: stack
Date: Fri Dec  9 19:08:11 2011
New Revision: 1212581

URL: http://svn.apache.org/viewvc?rev=1212581&view=rev
Log:
HBASE-4992 Use a UUID for HFileOutputFormat partition path name

Modified:
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat.java

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat.java?rev=1212581&r1=1212580&r2=1212581&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat.java Fri
Dec  9 19:08:11 2011
@@ -31,6 +31,7 @@ import java.util.List;
 import java.util.Map;
 import java.util.TreeMap;
 import java.util.TreeSet;
+import java.util.UUID;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -315,7 +316,7 @@ public class HFileOutputFormat extends F
     job.setNumReduceTasks(startKeys.size());
 
     Path partitionsPath = new Path(job.getWorkingDirectory(),
-        "partitions_" + System.currentTimeMillis());
+                                   "partitions_" + UUID.randomUUID());
     LOG.info("Writing partition information to " + partitionsPath);
 
     FileSystem fs = partitionsPath.getFileSystem(conf);



Mime
View raw message