0
votes

If client and server in same ubuntu machine, not able to connect. giving error

Call From ashish/127.0.0.1 to localhost:54310 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused

1

1 Answers

0
votes

By server do you mean namenode? By client do you mean hadoop client, datanode, nodemanager? Are you sure namenode is running and exposed on localhost:54310? Could you try

> nc -vz localhost 54310

How does your /etc/hosts look like? How does your core-site.xml and hdfs-site.xml looks like? What do you get for (as your hadoop user):

> jps -ml

What do you get for:

> sudo iptables -L

Also take a look at: