I'm currently learning Hadoop by http://tecadmin.net/steps-to-install-hadoop-on-centosrhel-6/
in the 5th step when I apply this command $ bin/hadoop namenode -format I get following error
I also have checked these links for resolving my problem "hadoop namenode -format" returns a java.net.UnknownHostException java.net.UnknownHostException: Invalid hostname for server: local I don't know where is domain name in the configuration files for replacing it by localhost. also I went to /etc/hosts file and replaced text by localhost.. still I haven't resolve the problem please someone help me.