标签:hadoop centos7 datanode master
start-dfs.sh
进程都启动成功
master:
65456 Jps
64881 NameNode
65057 DataNode
7380 NodeManager
65276 SecondaryNameNode
slave:
3607 DataNode
7380 NodeManager
3675 Jps
hadoop下:
slaves文件设置:
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          
-----------------------------------------------
问题描述:
在http://master:50070/  监控页面下。
live nodes  为1.
       只有master 的 datanode 可以看到,另外两台slave 虽有进程但无法连接到master.
而且在 slave 下  dfs/data 下 都没有生成 current 文件
查看日志为:
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)
| 原因在于centos7 关闭 selinux 和 iptables 不行 要关闭动态防火墙 关闭防火墙:***********非常重要*********** # systemctl status firewalld.service --查看防火墙状态 # systemctl stop firewalld.service --关闭防火墙 # systemctl disable firewalld.service --永久关闭防火墙 | 
标签:hadoop centos7 datanode master
原文地址:http://36006798.blog.51cto.com/988282/1870595