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 <[email protected]>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 > >
