I'm building an application on AWS EMR using YARN (and Dask) version Hadoop 2.7.3-amzn-1. I'm trying to test various failure scenarios and I'm wanting to simulate a container failure. I can't seem to find an easy way to kill a YARN container - only the whole application. Is there a command-line utility for this?
How do I kill a YARN container to test failure scenarios
1.9k views Asked by gallamine At
3
There are 3 answers
0
On
Seems like it's exposed in API starting from version 2.8.0 https://hadoop.apache.org/docs/r2.8.0/api/org/apache/hadoop/yarn/client/api/YarnClient.html#signalToContainer(org.apache.hadoop.yarn.api.records.ContainerId,%20org.apache.hadoop.yarn.api.records.SignalContainerCommand)
Through the command
yarn container -signal [container-ID] GRACEFUL_SHUTDOWN
to achieve.i've tried and int works,I hope that will be helpful.