HADOOP-11172. Improve error message in Shell#runCommand on OutOfMemoryError. (Yongjun Zhang via wang)

(cherry picked from commit 4b2834898cbcc66ffbf01b2fb10375e79a50d538)