YARN-1661. Fixed DS ApplicationMaster to write the correct exit log. Contributed by Vinod Kumar Vavilapalli. svn merge --ignore-ancestry -c 1565394 ../../trunk/