YARN-2165. Added the sanity check for the numeric configuration values of the timeline service. Contributed by Vasanth kumar RJ.

(cherry picked from commit 8f1454cc6d46afa057770a39aecc151c5f048b57)