SPARK-3837. Warn when YARN kills containers for exceeding memory limits

I triggered the issue and verified the message gets printed on a pseudo-distributed cluster.
Mostly personal preference I guess, but it feels too heavy-handed to add an object for this (instead of placing these things inside YarnAllocator directly ).