I'm learning hadoop and try to set up the environment according to online documents. I've configured the ssh (that ssh localhost won't need a password), configured the "core-site.xml", "hdfs-site.xml", "mapred-site.xml" and "yarn-site.xml" But when I tried "hadoop namenode -format" it gave out "java.net.UnknownHostException" and host = java.net.UnknownHostException:
I've tried to search online help but nearly all are: change the network configuration in etc/hosts. But I'm using hadoop 2.4 and there's no such folder.
Any suggestion?
Thanks!