0

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

HaveNoDisplayName
  • 8,291
  • 106
  • 37
  • 47
Ashish Singhal
  • 405
  • 5
  • 21

1 Answers1

0

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:

Community
  • 1
  • 1
rav
  • 3,579
  • 1
  • 18
  • 18
  • on nc -vz localhost 54310getting nc: connect to localhost port 54310 (tcp) failed: Connection refused – Ashish Singhal Nov 03 '15 at 05:32
  • i am not able to start namenode so i have started secondarynamenode. It is still still saying connection refused – Ashish Singhal Nov 03 '15 at 05:42
  • @ashishSinghal secondary namenode is not the same thing as primary namenode. Please read hadoop documentation -> https://hadoop.apache.org/#Getting+Started Work your way, step by step - make sure the all the pieces of the cluster are healthy before you move further. Having active NN/master is crucial - start there. – rav Nov 03 '15 at 06:10