Can not find answer on this question.
How to gracefully stop YARN role on a data node and wait till all running jobs on a datanode will finish with status success.
I know that in ClouderaManager you can decommission yarn role when you can stop it. If I do YARN role decommission The running jobs will fail with exit code killed or crash status.
Is this a safe way to YARN role stop on a data node?
Is this a graceful yarn role shutdown or where is other way to do this? all jobs have killed status after YARN role decommission