When the RM is restarting, the NM, AM and Clients should wait for some time for the RM to come back up.
MR changes for YARN-513
Make NetUtils.wrapException throw EOFException instead of wrapping it as IOException
NM retry behavior for connection to RM should be similar for lost heartbeats
YarnClientImpl.submitApplication() to add a timeout