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

This commit is contained in:
tedyu 2015-01-05 09:29:00 -08:00
parent ac95cc1fbb
commit 2ba6053163
1 changed files with 1 additions and 1 deletions

View File

@ -590,8 +590,8 @@ public class HFileOutputFormat2
FileSystem fs = FileSystem.get(job.getConfiguration()); FileSystem fs = FileSystem.get(job.getConfiguration());
Path partitionsPath = new Path("/tmp", "partitions_" + UUID.randomUUID()); Path partitionsPath = new Path("/tmp", "partitions_" + UUID.randomUUID());
fs.makeQualified(partitionsPath); fs.makeQualified(partitionsPath);
fs.deleteOnExit(partitionsPath);
writePartitions(job.getConfiguration(), partitionsPath, splitPoints); writePartitions(job.getConfiguration(), partitionsPath, splitPoints);
fs.deleteOnExit(partitionsPath);
// configure job to use it // configure job to use it
job.setPartitionerClass(TotalOrderPartitioner.class); job.setPartitionerClass(TotalOrderPartitioner.class);