I\'m currently learning hadoop and I\'m trying to setup a single node test as defined in http://hadoop.apache.org/common/docs/current/single_node_setup.html
First get the host name of your computer. It can be obtained by running $hostname command.
Then add 127.0.0.1 localhost hostname into the /etc/hosts file. That should solve the problem.