hadoop datanode 不能连接 namenode <各种原因都看过,还没有解决>

[复制链接]
查看11 | 回复2 | 2021-1-27 05:48:44 | 显示全部楼层 |阅读模式
环境centos7+hadoop2.6
ssh各种连接都没有问题master连slaveslave连master
防火墙:selinuxiptables都关闭
hosts设置没有问题127.0.0.1都去掉,3台虚拟机都只留
192.168.1.200master
192.168.1.201slave1
192.168.1.202slave2
-------------------------------------------------------
start-dfs.sh
进程都启动成功
master:
65456Jps
64881NameNode
65057DataNode
65276SecondaryNameNode
slave:
3607DataNode
3675Jps
-----------------------------------------------------
hadoop下:
slaves文件设置:
master
slave1
slave2
----------------------------------------------
netstat-anp|grep9000
tcp00192.168.1.200:90000.0.0.0:*LISTEN64881/java
tcp00192.168.1.200:9000192.168.1.200:42846ESTABLISHED64881/java
tcp00192.168.1.200:42853192.168.1.200:9000TIME_WAIT-
tcp00192.168.1.200:42846192.168.1.200:9000ESTABLISHED65057/java
-----------------------------------------------
问题描述:
在http://master:50070/监控页面下。
livenodes为1.
只有master的datanode可以看到,另外两台slave虽有进程但无法连接到master.
而且在slave下dfs/data下都没有生成current文件
查看日志为:
2015-08-2221:44:18,358INFOorg.apache.hadoop.hdfs.server.datanode.DataNode:Blockpool(DatanodeUuidunassigned)servicetomaster/192.168.1.200:9000startingtoofferservice
2015-08-2221:44:18,369INFOorg.apache.hadoop.ipc.Server:IPCServerResponder:starting
2015-08-2221:44:18,369INFOorg.apache.hadoop.ipc.Server:IPCServerlisteneron50020:starting
-------------从下面开始就有问题了---------------------------------------------------
2015-08-2221:44:19,478INFOorg.apache.hadoop.ipc.Client:Retryingconnecttoserver:master/192.168.1.200:9000.Alreadytried0time(s);retrypolicyisRetryUpToMaximumCountWithFixedSleep(maxRetries=10,sleepTime=1000MILLISECONDS)
2015-08-2221:44:20,479INFOorg.apache.hadoop.ipc.Client:Retryingconnecttoserver:master/192.168.1.200:9000.Alreadytried1time(s);retrypolicyisRetryUpToMaximumCountWithFixedSleep(maxRetries=10,sleepTime=1000MILLISECONDS)
我对过master下datanode的日志,分割线上面都一样,下面就出问题。
hadoopnamenode-format清过几遍
dfs/namedfs/datalogs/tmp/都清了。还是不行
查询历史帖子,相同的现象,我都看过,但还是无法解决。
请各位帮忙看看。不胜感激。


分 -->
回复

使用道具 举报

千问 | 2021-1-27 05:48:44 | 显示全部楼层
安装telnet客户端,尝试在datanode节点上,telnet到namenode的9000端口,看能否连得上。以排除是否为网络连接问题。
回复

使用道具 举报

千问 | 2021-1-27 05:48:44 | 显示全部楼层
试一下删除data目录(即是在hdfs-site.xml文件中配置的dfs.data.dir目录)然后重启datanode,看看行不
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行