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:
parent
ade55f9573
commit
28320c5220
@ -789,6 +789,9 @@ Release 0.23.3 - UNRELEASED
|
|||||||
parallel use (due to a /tmp file with static name) (Robert Evans via
|
parallel use (due to a /tmp file with static name) (Robert Evans via
|
||||||
jeagles)
|
jeagles)
|
||||||
|
|
||||||
|
MAPREDUCE-4504. SortValidator writes to wrong directory (Robert Evans
|
||||||
|
via tgraves)
|
||||||
|
|
||||||
Release 0.23.2 - UNRELEASED
|
Release 0.23.2 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -344,7 +344,7 @@ static void checkRecords(Configuration defaults,
|
|||||||
|
|
||||||
FileInputFormat.setInputPaths(jobConf, sortInput);
|
FileInputFormat.setInputPaths(jobConf, sortInput);
|
||||||
FileInputFormat.addInputPath(jobConf, sortOutput);
|
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());
|
"sortvalidate"), UUID.randomUUID().toString());
|
||||||
if (defaultfs.exists(outputPath)) {
|
if (defaultfs.exists(outputPath)) {
|
||||||
defaultfs.delete(outputPath, true);
|
defaultfs.delete(outputPath, true);
|
||||||
|
@ -344,7 +344,7 @@ static void checkRecords(Configuration defaults,
|
|||||||
|
|
||||||
FileInputFormat.setInputPaths(jobConf, sortInput);
|
FileInputFormat.setInputPaths(jobConf, sortInput);
|
||||||
FileInputFormat.addInputPath(jobConf, sortOutput);
|
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());
|
"sortvalidate"), UUID.randomUUID().toString());
|
||||||
if (defaultfs.exists(outputPath)) {
|
if (defaultfs.exists(outputPath)) {
|
||||||
defaultfs.delete(outputPath, true);
|
defaultfs.delete(outputPath, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user