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

Steve Loughran commented on HADOOP-15527:
-----------------------------------------

normal {{kill}} calls can hang if something blocks in shutdown, including HDFS. 
If you implement your entry point atop {{org.apache.hadoop.service.launcher}}, 
you'll see its interrupt handler, {{InterruptEscalator}} will (a) add a timeout 
to shutdown and call JVM exit if it takes too long, and (b) treat a second kill 
as a request to exit hard, not retry a clean shutdown. It should be picked up 
as the entry point.

> Sometimes daemons keep running even after "kill -9" from daemon-stop script
> ---------------------------------------------------------------------------
>
>                 Key: HADOOP-15527
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15527
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Vinod Kumar Vavilapalli
>            Assignee: Vinod Kumar Vavilapalli
>            Priority: Major
>             Fix For: 3.2.0, 3.1.1
>
>         Attachments: HADOOP-15527.1.txt, HADOOP-15527.2.txt, HADOOP-15527.txt
>
>
> I'm seeing that sometimes daemons keep running for a little while even after 
> "kill -9" from daemon-stop scripts.
> Debugging more, I see several instances of "ERROR: Unable to kill ${pid}".
> Saw this specifically with ResourceManager & NodeManager -  {{yarn --daemon 
> stop nodemanager}}. Though it is possible that other daemons may run into 
> this too.
> Saw this on both Centos as well as Ubuntu.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to