环境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/都清了。还是不行
查询历史帖子,相同的现象,我都看过,但还是无法解决。
请各位帮忙看看。不胜感激。
分 -->
|