hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Nauroth <cnaur...@hortonworks.com>
Subject Re: Recommended way to kill an app?
Date Fri, 23 Nov 2012 16:54:21 GMT
The yarn CLI script provides kill as a sub-command of the application
command:

bin/yarn application -kill <application_id>

Is this what you need?

--Chris

On Thu, Nov 22, 2012 at 6:07 AM, Matthieu Morel <matthieu@yahoo-inc.com>wrote:

> Hello,
>
> I am working with yarn 2.0.2-alpha.
>
>
> I want to be able to properly terminate long running applications deployed
> on Yarn. However, I can't see any tool to do that from the command line
> (something like "hadoop job -kill #jobid". but for yarn). It's not clear to
> me how to do that programmatically either.
>
> Is this left to the developer of the application master? Is there a
> recommended way?
>
>
> Currently an option I see is to implement a callback from some
> notification in the application master (e.g. a signal from ZooKeeper),
> terminate the launched container properly, through the
> ContainerManager#stopContainer method. But there might be a more generic
> way?
>
> I also noted that ClientRMProtocol#forceKillApplication does not properly
> kill spawned processes, apart from the application master, at least when
> using MiniYarnCluster in tests.
>
>
> Thanks for any suggestion or recommendation !
>
>
> Matthieu
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message