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.
`ContainerExitStatus` is `@Public`. Does it not exist in yarn-alpha?

If that's why you're using the numbers directly, I'd leave a comment saying this can be cleaned up when yarn-alpha is removed.