MAPREDUCE-4504. SortValidator writes to wrong directory (Robert Evans via tgraves)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1368294 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Graves 2012-08-01 22:14:13 +00:00
parent ade55f9573
commit 28320c5220
3 changed files with 5 additions and 2 deletions

View File

@ -789,6 +789,9 @@ Release 0.23.3 - UNRELEASED
parallel use (due to a /tmp file with static name) (Robert Evans via
jeagles)
MAPREDUCE-4504. SortValidator writes to wrong directory (Robert Evans
via tgraves)
Release 0.23.2 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -344,7 +344,7 @@ static void checkRecords(Configuration defaults,
FileInputFormat.setInputPaths(jobConf, sortInput);
FileInputFormat.addInputPath(jobConf, sortOutput);
Path outputPath = new Path(new Path(jobConf.get("hadoop.tmp.dir", "/tmp"),
Path outputPath = new Path(new Path("/tmp",
"sortvalidate"), UUID.randomUUID().toString());
if (defaultfs.exists(outputPath)) {
defaultfs.delete(outputPath, true);

View File

@ -344,7 +344,7 @@ static void checkRecords(Configuration defaults,
FileInputFormat.setInputPaths(jobConf, sortInput);
FileInputFormat.addInputPath(jobConf, sortOutput);
Path outputPath = new Path(new Path(jobConf.get("hadoop.tmp.dir", "/tmp"),
Path outputPath = new Path(new Path("/tmp",
"sortvalidate"), UUID.randomUUID().toString());
if (defaultfs.exists(outputPath)) {
defaultfs.delete(outputPath, true);