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 1, 2020 in Big Data Hadoop by Bhavesh
• 120 points
3,910 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,240 points

Related Questions In Big Data Hadoop

0 votes
1 answer

Hadoop Pig: java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/filter/Filter

This seems like a problem with the ...READ MORE

answered Nov 16, 2018 in Big Data Hadoop by Omkar
• 69,150 points
907 views
0 votes
1 answer

Hadoop Java: org.apache.hadoop.conf.Configuration does not exist error

To solve this error, add hadoop-common to ...READ MORE

answered Nov 20, 2018 in Big Data Hadoop by Omkar
• 69,150 points
3,820 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
7,603 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
1,257 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
57,921 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,390 points
2,863 views
0 votes
1 answer

ERROR org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - ZooKeeper exists failed after 4 attempts

Hi@akhtar, This error shows, Hbase is not able ...READ MORE

answered Mar 31, 2020 in Big Data Hadoop by MD
• 95,240 points
1,406 views