fix #230 Executor fails to connect with AppMaster
Merge pull request #235 from clockfly/localmode_fix3

#230 Executor fails to connect with AppMaster