MAPREDUCE-7041. MR should not try to clean up at first job attempt. (Gergo Repas via Haibo Chen)
This commit is contained in:
parent
ff8378eb1b
commit
cc10852252
@ -1400,7 +1400,7 @@ private boolean shouldAttemptRecovery() throws IOException {
|
||||
|
||||
private void cleanUpPreviousJobOutput() {
|
||||
// recovered application masters should not remove data from previous job
|
||||
if (!recovered()) {
|
||||
if (!isFirstAttempt() && !recovered()) {
|
||||
JobContext jobContext = getJobContextFromConf(getConfig());
|
||||
try {
|
||||
LOG.info("Starting to clean up previous job's temporary files");
|
||||
|
Loading…
Reference in New Issue
Block a user