Repository: hbase
Updated Branches:
  refs/heads/0.98 9b25e850d -> c1a6ee335


HBASE-12804 ImportTsv fails to delete partition files created by it (Ashish)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/c1a6ee33
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/c1a6ee33
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/c1a6ee33

Branch: refs/heads/0.98
Commit: c1a6ee335a3493e83d2c297ebd644a38e23944f1
Parents: 9b25e85
Author: tedyu <yuzhih...@gmail.com>
Authored: Mon Jan 5 09:30:51 2015 -0800
Committer: tedyu <yuzhih...@gmail.com>
Committed: Mon Jan 5 09:30:51 2015 -0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/c1a6ee33/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java
----------------------------------------------------------------------
diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java
 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java
index 2e104b6..b930f12 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java
@@ -544,8 +544,8 @@ public class HFileOutputFormat2
     FileSystem fs = FileSystem.get(job.getConfiguration());
     Path partitionsPath = new Path("/tmp", "partitions_" + UUID.randomUUID());
     fs.makeQualified(partitionsPath);
-    fs.deleteOnExit(partitionsPath);
     writePartitions(job.getConfiguration(), partitionsPath, splitPoints);
+    fs.deleteOnExit(partitionsPath);
 
     // configure job to use it
     job.setPartitionerClass(TotalOrderPartitioner.class);

Reply via email to