After moving the Zookeeper servers and setting correctly in the yarn configs, Resource managers come up but are in standby state.
Even after removing the znode - rmstore, none of the nodes transition to active.
Zookeeper data is stored in znode yarn-leader-election. This is used for RM leader election. This znode has stale data about zookeeper leader.
1. Login into zkcli
2. rmr /yarn-leader-election
3. Restart Resource managers.