Merge r1503354 from branch-2 to branch-2.1-beta for YARN-654. AMRMClient: Perform sanity checks for parameters of public methods (Xuan Gong via bikas)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2.1-beta@1503355 13f79535-47bb-0310-9956-ffa450edef68
YARN-909. Merging change r1503362 from branch-2 to branch-2.1-beta.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2.1-beta@1503365 13f79535-47bb-0310-9956-ffa450edef68
svn merge -c 1503390 merging from trunk to fix HADOOP-9707.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2.1-beta@1503395 13f79535-47bb-0310-9956-ffa450edef68