YARN-2823. Fixed ResourceManager app-attempt state machine to inform schedulers about previous finished attempts of a running appliation to avoid expectation mismatch w.r.t transferred containers. Contributed by Jian He.

(cherry picked from commit a5657182a7accebe08cd86e46b4cdeb163d4d1f2)
YARN-2810. TestRMProxyUsersConf fails on Windows VMs. Contributed by Varun Vasudev

(cherry picked from commit 1e97f2f09464e871773188f642f3a01b744c580f)
(cherry picked from commit bf795418686e1559db4c37c0b107bb5c08bbf525)
YARN-2824. Fixed Capacity Scheduler to not crash when some node-labels are not mapped to queues by making default capacities per label to be zero. Contributed by Wangda Tan.

(cherry picked from commit 2ac1be7dec4aef001e3162e364249933b2c4a6c4)
YARN-2827. Fixed bugs in "yarn queue" CLI. Contributed by Wangda Tan.

(cherry picked from commit 7b190796578c55d1f282188a53ccfa2abd8cab21)
YARN-2803. MR distributed cache not working correctly on Windows after NodeManager privileged account changes. Contributed by Craig Welch.

(cherry picked from commit 06b797947c980d7d21864eb8b700cf565756aac1)
(cherry picked from commit c16f7182937dc4e8bbf46dfedd9db427a0a33357)