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 "Shane Kumpf (JIRA)" <ji...@apache.org> on 2018/05/03 13:34:00 UTC

[jira] [Commented] (YARN-7973) Support ContainerRelaunch for Docker containers

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

Shane Kumpf commented on YARN-7973:
-----------------------------------

[~eyang] - I realized after YARN-8194 that this isn't in branch-3.1. I think it should be as it fixes an issue introduced by YARN-5366 in the case of a RELAUNCH. YARN-5366 was committed in 3.1. Without this, RELAUNCH is broken when running Docker based Native Services. It looks like it applies to branch-3.1 still, but let me know if you'd like me to put up a new patch for branch-3.1

> Support ContainerRelaunch for Docker containers
> -----------------------------------------------
>
>                 Key: YARN-7973
>                 URL: https://issues.apache.org/jira/browse/YARN-7973
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Shane Kumpf
>            Assignee: Shane Kumpf
>            Priority: Major
>              Labels: Docker
>             Fix For: 3.2.0
>
>         Attachments: YARN-7973.001.patch, YARN-7973.002.patch, YARN-7973.003.patch, YARN-7973.004.patch
>
>
> Prior to YARN-5366, {{container-executor}} would remove the Docker container when it exited. The removal is now handled by the {{DockerLinuxContainerRuntime}}. {{ContainerRelaunch}} is intended to reuse the workdir from the previous attempt, and does not call {{cleanupContainer}} prior to {{launchContainer}}. The container ID is reused as well. As a result, the previous Docker container still exists, resulting in an error from Docker indicating the a container by that name already exists.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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