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

Eric Payne commented on YARN-9931:
----------------------------------

YARN allows the owner of the application (or a cluster admin) to dump the 
jstack of the container, either from the command line or from CLI, using 
https://hadoop.apache.org/docs/r3.1.0/api/org/apache/hadoop/yarn/api/records/SignalContainerCommand.html

>From command line, for example, the following will put a stack trace in the 
>stdout of the container's logs:
{code}
yarn container -signal container_1466534149943_0002_01_000007OUTPUT_THREAD_DUMP
{code}
After that, the container can be killed.

Will this suit your use caes?

> Support run script before kill container
> ----------------------------------------
>
>                 Key: YARN-9931
>                 URL: https://issues.apache.org/jira/browse/YARN-9931
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: nodemanager
>            Reporter: zhoukang
>            Assignee: zhoukang
>            Priority: Major
>
> Like node health check script. We can add a pre-kill script which run before 
> kill container.
> For example we can save the thread dump before kill the container, which is 
> helpful for troubleshooting.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to