I think your /etc/hosts file is not set correctly.
You can specify all nodes in cluster by any one of following method:
+ set ip address in yarn/conf/slaves
+ set ip and hostname in /etc/hosts, and then set hostname in
yarn/conf/slaves
------------------------
Twitter https://twitter.com/nourlcn
Blog feeds.feedburner.com/nourlcn