I'm troubleshooting YARN application failures that happen when nodes are LOST, so I'm trying to recreate this scenario. But I'm only able to force nodes to be SHUTDOWN instead of LOST. I'm using AWS EMR, and I've tried:
shutdown -h now
sudo stop hadoop-yarn-nodemanager
and sudo stop hadoop-hdfs-datanode
kill -9 <pid>
Those result in SHUTDOWN nodes but not LOST nodes.
How do I create a LOST node in AWS EMR?
As I suggested in the comments, bringing the interface down on the node induces the node LOST scenario e.g:
ifconfig eth0 down