Repository: hbase
Updated Branches:
  refs/heads/branch-1 173eba815 -> a14723b43


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

Branch: refs/heads/branch-1
Commit: a14723b435d17337d94004c27c0a800d14fe28a4
Parents: 173eba8
Author: tedyu <yuzhih...@gmail.com>
Authored: Mon Jan 5 09:29:36 2015 -0800
Committer: tedyu <yuzhih...@gmail.com>
Committed: Mon Jan 5 09:29:36 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/a14723b4/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 a4d2425..513e398 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
@@ -570,8 +570,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