MAPREDUCE-7041. MR should not try to clean up at first job attempt. (Gergo Repas via Haibo Chen)
(cherry picked from commitcc10852252
) (cherry picked from commite6c66baba9
)
This commit is contained in:
parent
4d7bbee0a1
commit
5f44bd3eba
|
@ -1382,7 +1382,7 @@ public class MRAppMaster extends CompositeService {
|
|||
|
||||
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