[
https://issues.apache.org/jira/browse/YARN-6399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yeliang Cang updated YARN-6399:
-------------------------------
Comment: was deleted
(was: It seems that in RMAppManager#writeAuditLog, we should use
getFinalApplicationStatus() instead of app.getState():
CHANGE THE CODE
switch (app.getState()) {
case FAILED:
operation = AuditConstants.FINISH_FAILED_APP;
break;
case FINISHED:
operation = AuditConstants.FINISH_SUCCESS_APP;
success = true;
break;
case KILLED:
operation = AuditConstants.FINISH_KILLED_APP;
success = true;
break;
default:
break;
}
AS:
switch (app.getFinalApplicationStatus()) {
case FAILED:
operation = AuditConstants.FINISH_FAILED_APP;
break;
case SUCCEEDED:
operation = AuditConstants.FINISH_SUCCESS_APP;
success = true;
break;
case KILLED:
operation = AuditConstants.FINISH_KILLED_APP;
success = true;
break;
default:
break;
}
)
> application failed in ResourceManager web UI, but shown as "Application
> Finished - Succeeded" in RMAuditLogger
> --------------------------------------------------------------------------------------------------------------
>
> Key: YARN-6399
> URL: https://issues.apache.org/jira/browse/YARN-6399
> Project: Hadoop YARN
> Issue Type: Bug
> Components: resourcemanager
> Affects Versions: 2.7.3
> Reporter: Yeliang Cang
> Attachments: AppShownInRMAuditLoggerFile.PNG, CommandLine.PNG,
> resourcemanagerWebUI.PNG
>
>
> I hava run an wordcount app on yarn. During the app running time, all the two
> resourcemanagers (acitve and standby) and nodemanagers are restarted. After
> that, the wordcount app still ran but failed at last. This can be shown in RM
> web UI. But the RMAuditLogger shows "Application Finished - Succeeded"
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]