I have a job that successfully finished in one cluster and failed in other one.
How can I compare YARN settings/configurations between those two cluster?
Grab the configuration files from both clusters. Try to compare what is in those. That will get you some idea.
However comparing configs will only tell you part of what is going on. The failure might not even be config related.
Better would be to grab the logs of the failed job and check what has failed.
Please post the logs of failed jobs
Which version of CM are you using? Theres one option non-default in configuration tab. You can compare it by observing the non-default changes.