HDFS-4906. HDFS Output streams should not accept writes after being closed. Contributed by Aaron T. Myers.


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2.1-beta@1494308 13f79535-47bb-0310-9956-ffa450edef68
Merge r1494311 from branch-2 to branch-2.1-beta for YARN-850. Rename getClusterAvailableResources to getAvailableResources in AMRMClients (Jian He via bikas)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2.1-beta@1494315 13f79535-47bb-0310-9956-ffa450edef68
HADOOP-9637. Merging change r1494344 from branch-2 to branch-2.1-beta.

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