Repository: hbase
Updated Branches:
  refs/heads/master ac95cc1fb -> 2ba605316


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/2ba60531
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2ba60531
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2ba60531

Branch: refs/heads/master
Commit: 2ba6053163ed62dc3f72bdc5d8380690a235e28b
Parents: ac95cc1
Author: tedyu <yuzhih...@gmail.com>
Authored: Mon Jan 5 09:29:00 2015 -0800
Committer: tedyu <yuzhih...@gmail.com>
Committed: Mon Jan 5 09:29:00 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/2ba60531/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 513bf40..9ccaf95 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
@@ -590,8 +590,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