MINOR: fix bugs in HadoopYarnResourceUtils

Author: Zhao, Qingwen <qingwzhao@apache.org>

Closes #888 from qingwen220/minor.
7 files changed