YARN-2452. TestRMApplicationHistoryWriter fails with FairScheduler. (Zhihai Xu via kasha)

(cherry picked from commit c50fc92502934aa2a8f84ea2466d4da1e3eace9d)