启动hadoop时,datanode不出现,查看日志时出现这条信息:
java.net.ConnectException: Call From Master/127.0.0.1 to Master:9000 failed on connection exception: java.net.ConnectException: 拒绝连接;
解决问题:
1、配置文件中主机名是否正确;
我这里不是这原因。
2、hosts文件中出现出现错误。
在host文件中注释掉
127.0.0.1 localhost
::1 localhost6 Master
重启Hadoop集群。
如果还不能解决,请阅读这里。
http://wiki.apache.org/hadoop/ConnectionRefused