Which version of slider are you using? What do you intend to do in the containers before they are stopped?
In the latest released version 0.90.2 (and few of the previous ones for sure), when you do a flex to shrink, by default it selects the most recent containers (MostRecentContainerReleaseSelector.java) for release. So if you know the container create/start times (slider status), you will know which ones will be stopped/released. You can write your own ContainerReleaseSelector and embed in the code and use it. It does not have a plugin support yet, but probably deems a JIRA. -Gour On 3/21/16, 7:44 PM, "sunww" <spe...@outlook.com> wrote: >Hi > I'm using "slider flex" command to shrink yarn cluster, and I want >to do something in containers before those containers stopped. > So Is there a way to get those containers which will be stopped. > >Thanks.