Use buffered write in YarnContainerManager 

Added FileUtils.java which contains a single method that writes a string to a file with buffering.

Used that method in YarnContainerManager.java