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

Peng Zhang commented on MAPREDUCE-6329:
---------------------------------------

Thanks [~jlowe] & [~rohithsharma] for discussion. 
Two points to clarify firstly:
# I enabled NM restart and continuous scheduling in FairScheduler in cluster.
# Log "rm-app.log" is generate by grep app id from log, so some event log of NM 
is not included. Container 000004 is killed because NM re-connect, log as below:
{noformat}
2015-04-20,21:36:38,631 INFO org.apache.hadoop.yarn.util.RackResolver: Resolved 
instance-200.bj to /default-rack
2015-04-20,21:36:38,632 INFO 
org.apache.hadoop.yarn.server.resourcemanager.ResourceTrackerService: Reconnect 
from the node at: instance-200.bj
2015-04-20,21:36:38,632 INFO 
org.apache.hadoop.yarn.server.resourcemanager.ResourceTrackerService: 
NodeManager from node instance-200.bj(cmPort: 22400 httpPort: 22401) registered 
with capability: <memory:10240, vCores:4>, assigned nodeId instance-200.bj:22400
2015-04-20,21:36:38,633 INFO 
org.apache.hadoop.yarn.server.resourcemanager.rmcontainer.RMContainerImpl: 
container_1428390739155_23973_01_000004 Container Transitioned from ALLOCATED 
to KILLED
{noformat}

Following your thoughts, I try to describe the issue sequence as below:
# AM got allocated container 000003 from instance-200.
# AM try to launch container 000003 on instance-200, NM reject request because 
it just restarted and has not registered with RM.
# AM ask new map request with RM.
# RM's continuos scheduling assigned container 000004 on instance-200 to AM 
(because RM doesn't know NM has restarted)
# NM register with RM with 0 container report, RM change container 000004 from 
ALLOCATED to KILLED.
# AM heartbeat and got released container 000004, and ignore it because it 
didn't get this id before.
# At this point, RM think it has fulfilled AM's all requests, but AM was still 
be waiting for RM's scheduling of map request.

If the sequence is right, I think like [~rohithsharma]'s point, this is a bug 
of YARN: 
bq. If a container is killed before it is ACQUIRED then the RM should not treat 
the corresponding ask for that container as being fulfilled.


> Failure of start map task on NM cause job hang
> ----------------------------------------------
>
>                 Key: MAPREDUCE-6329
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6329
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 2.6.0
>            Reporter: Peng Zhang
>         Attachments: syslog.tgz, yarn-app.log
>
>
> During rolling update of NM, AM start of container on NM failed. 
> And then job hang there.
> Attach AM logs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to