[
https://issues.apache.org/jira/browse/YARN-11566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17765550#comment-17765550
]
ASF GitHub Bot commented on YARN-11566:
---------------------------------------
zhengchenyu opened a new pull request, #6068:
URL: https://github.com/apache/hadoop/pull/6068
### Description of PR
When AMRMProxy is enable, the application may allocate container among multi
sub cluster. The application in secondary sub cluster will be labeled as
unmananged application. When we run 'yarn app -kill {appid}', the unmananged
application will not be killed in secondary sub cluster.
The unmanaged application will be removed util app attempt is expired after
15 minute.
### How was this patch tested?
unit test and test in real cluster.
### For code changes:
1. Fix createForceFinishApplicationThread. forceKillApplication will called
in asynchronous thread. Some variable maybe removed before call
forceKillApplication. And threadpool may be shutdown. Here transmit the copy to
the thread, and do not use threadpool.
2. When call forceKillApplication, before we use non-security user, here
changed to use proxy user.
3. Fix shutdown. When the resource of application is clean up, it means the
application is final state, maybe succeeded, failed or killed. Here we should
forceKillApplication for uam.
> Yarn app kill command can not kill the application in secondary sub cluster.
> ----------------------------------------------------------------------------
>
> Key: YARN-11566
> URL: https://issues.apache.org/jira/browse/YARN-11566
> Project: Hadoop YARN
> Issue Type: Improvement
> Reporter: zhengchenyu
> Assignee: zhengchenyu
> Priority: Major
> Labels: pull-request-available
>
> When AMRMProxy is enable, the application may allocate container among multi
> sub cluster. The application in secondary sub cluster will be labeled as
> unmananged application. When we run 'yarn app -kill \{appid}', the unmananged
> application will not be killed in secondary sub cluster.
> The unmanaged application will be removed util app attempt is expired after
> 15 minute.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]