Hadoop Datanode cannot connect Namenode

Source: Internet
Author: User

start-dfs.sh
The process is started successfully
Master:
65456 Jps
64881 NameNode
65057 DataNode

7380 NodeManager

65276 Secondarynamenode
Slave:
3607 DataNode

7380 NodeManager
3675 Jps

under Hadoop:
Slaves File Settings:
Master
slave1
Slave2
----------------------------------------------
Netstat-anp|grep 9000
TCP 0 0 192.168.1.200:9000 0.0.0.0:* LISTEN 64881/java
TCP 0 0 192.168.1.200:9000 192.168.1.200:42846 established 64881/java
TCP 0 0 192.168.1.200:42853 192.168.1.200:9000 time_wait-
TCP 0 0 192.168.1.200:42846 192.168.1.200:9000 established 65057/java
-----------------------------------------------
Problem Description:
under the HTTP://MASTER:50070/monitoring page.
Live Nodes is 1.
only master Datanode can see that the other two slave have processes but cannot connect to master.
and inThe current file is not generated under slave dfs/data
View logs as:


2016-11-08 13:12:31,099 INFO org.apache.hadoop.ipc.Client:Retrying connect to server:master/192.168.0.100:9000. Already tried 6 time (s); Retry policy is Retryuptomaximumcountwithfixedsleep (maxretries=10, sleeptime=1000 MILLISECONDS)



The reason is Centos7.
Turn off SELinux and iptables. To turn off dynamic firewalls

Shutting down the firewall: *********** is very important ***********
# SYSTEMCTL Status Firewalld.service--View firewall status
# Systemctl Stop Firewalld.service--shut down the firewall
# systemctl Disable Firewalld.service--permanently shut down the firewall


Hadoop Datanode cannot connect Namenode

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.