8020 failed on connection exception java net ConnectException Connection refused For more details see http wiki apache org hadoop ConnectionRefused

0 votes
Hi Team,

I am getting below error in hadoop namenode.

8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused

Please help me to resolve this error.

Thanks in advance!!!!
Apr 2, 2020 in Big Data Hadoop by Bhavesh
• 120 points
16,022 views

1 answer to this question.

0 votes

Hi@Bhavesh, 

You got connection refused. So, there may be lots of reason behind this. But you can troubleshoot step by step.

  • Stop the service.

  • Check properties in configuration files like core-site.xml, hdfs-site.xml, hadoop-env.sh file.

  • Write your namenode IP in /etc/hosts file.

  • Format namenode.

  • Stop firewall.

  • Start your service again.

Follow the above steps one by one. If it will not work, then share your configuration file.

Thank You

answered Apr 2, 2020 by MD
• 95,460 points