YARN-2627. Added the info logs of attemptFailuresValidityInterval and number of previous failed attempts. Contributed by Xuan Gong.

(cherry picked from commit 9582a50176800433ad3fa8829a50c28b859812a3)