I'm trying to run hadoop on VMware - I had it run last time and was succesfully run command such as
hadoop fs -ls
but after shut it down and open it again, I got the error :
[cloudera@localhost ~]$ hadoop fs -ls ls: Call From localhost.localdomain/127.0.0.1 to localhost:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:
http://wiki.apache.org/hadoop/ConnectionRefused
I am new to hadoop and trying to follow the guide line from the link above but still don't get it.
the instruction asking to
I managed to open /etc/hosts and instruction said .. Check that there isn't an entry for your hostname mapped to 127.0.0.1 or 127.0.1.1 in /etc/hosts (Ubuntu is notorious for this)
what does this exactly mean ? Here below is my hosts file look like ..
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
did you try to start hadoop again? It works :) (VMWare, Ubuntu, single node hadoop)
./sbin/start-all
As they say on apache wiki and here: http://iswwwup.com/t/3de851909073/hadoop-connection-refused-in-vmware.html
.. it also confused me, that start-all was not in ./bin folder as they refer here: http://hadoop.apache.org/docs/r1.2.1/single_node_setup.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.