You can use Placements Constraints(https://hadoop.apache.org/docs/r3.1.0/hadoop-yarn/hadoop-yarn-site/PlacementConstraints.html) or set yarn.scheduler.capacity.per-node-heartbeat.maximum-container-assignments to 1 if you RM config with capacityscheduler.
At 2020-03-23 22:58:59, "Debraj Manna" <subharaj.ma...@gmail.com> wrote: The same has been posted in StackOverflow but did not get any response there also. Anyone any thoughts on this ? On Mon, Mar 23, 2020 at 3:52 PM Debraj Manna <subharaj.ma...@gmail.com> wrote: Can someone let me know what is the recommended way to ensure high availability for a yarn application? For example, let say I have 3 physical nodes. The yarn java application needs 3 containers and each physical node has enough resources to hold 3 yarn containers. What is the recommended way to ensure that all the containers do not land upon the same physical node thereby becoming SPOF?