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 "rangjiaheng (JIRA)" <ji...@apache.org> on 2017/09/19 09:33:00 UTC
[jira] [Comment Edited] (YARN-7214) duplicated container completed
To AM
[ https://issues.apache.org/jira/browse/YARN-7214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16171402#comment-16171402 ]
rangjiaheng edited comment on YARN-7214 at 9/19/17 9:32 AM:
------------------------------------------------------------
We found this problem in Spark streaming application, a long-running application, which has fixed number of containers; after NM lost, NM restarted and RM restarted, a duplicated container was allocated.
was (Author: neomatrix):
We found this problem in Spark streaming application, a long-running application, which has fixed number of containers; after NM lost, NM restarted and RM restarted, a more container were allocated.
> duplicated container completed To AM
> ------------------------------------
>
> Key: YARN-7214
> URL: https://issues.apache.org/jira/browse/YARN-7214
> Project: Hadoop YARN
> Issue Type: Bug
> Affects Versions: 2.7.1, 3.0.0-alpha3
> Environment: hadoop 2.7.1 rm recovery and nm recovery enabled
> Reporter: zhangshilong
> Attachments: screenshot-1.png
>
>
> env: hadoop 2.7.1 with rm recovery and nm recovery enabled
> case:
> spark app(app1) running least one container(named c1) in NM1.
> 1、NM1 crashed,and RM found NM1 expired in 10 minutes.
> 2、RM will remove all containers in NM1(RMNodeImpl). and app1 will receive c1 completed message.But RM can not send c1(to be removed) to NM1 because NM1 lost.
> 3、NM1 restart and register with RM(c1 in register request),but RM found NM1 is lost and will not handle containers from NM1.
> 4、NM1 will not heartbeat with c1(c1 not in heartbeat request). So c1 will not removed from context of NM1.
> 5、 RM restart, NM1 re register with RM。And c1 will be handled and recovered. RM will send c1 complted message to AM of app1. So, app1 received duplicated c1.
> once spark AM receive one container completed from RM, it will allocate one new container.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org