HBASE-12804 ImportTsv fails to delete partition files created by it (Ashish)
This commit is contained in:
parent
173eba815b
commit
a14723b435
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue