You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Feng Yuan (JIRA)" <ji...@apache.org> on 2017/05/24 02:28:04 UTC

[jira] [Commented] (YARN-6630) Container worker dir could not recover when NM restart

    [ https://issues.apache.org/jira/browse/YARN-6630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16022223#comment-16022223 ] 

Feng Yuan commented on YARN-6630:
---------------------------------

IMO,by default when nm starts it will clear all workdirs, if we should skip some workdirs those container is recovering?
Any ideas?

> Container worker dir could not recover when NM restart
> ------------------------------------------------------
>
>                 Key: YARN-6630
>                 URL: https://issues.apache.org/jira/browse/YARN-6630
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Yang Wang
>
> When ContainerRetryPolicy is NEVER_RETRY, container worker dir will not be saved in NM state store. Then NM restarts, container.workDir is null, and may cause other exceptions.
> {code:title=ContainerLaunch.java}
> ...
>   private void recordContainerWorkDir(ContainerId containerId,
>       String workDir) throws IOException{
>     container.setWorkDir(workDir);
>     if (container.isRetryContextSet()) {
>       context.getNMStateStore().storeContainerWorkDir(containerId, workDir);
>     }
>   }
> {code}
> {code:title=ContainerImpl.java}
>   static class ResourceLocalizedWhileRunningTransition
>       extends ContainerTransition {
> ...
>           String linkFile = new Path(container.workDir, link).toString();
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org