Hadoop多节点群集:异常:java.net.ConnectException:连接被拒绝

Hadoop多节点群集:异常:java.net.ConnectException:连接被拒绝,hadoop,Hadoop,我使用http://pingax.com/install-apache-hadoop-ubuntu-cluster-setup/: 名称节点:node04 数据节点:node01 数据节点:node02 数据节点:node03 我只能看到集群中运行的两个节点(node01、node03)。Node02有一个日志,错误消息如下: 2015-12-11 10:15:18,698 INFO org.apache.hadoop.ipc.Client: Retrying connect to server

我使用
http://pingax.com/install-apache-hadoop-ubuntu-cluster-setup/

名称节点:node04 数据节点:node01 数据节点:node02 数据节点:node03

我只能看到集群中运行的两个节点(node01、node03)。Node02有一个日志,错误消息如下:

2015-12-11 10:15:18,698 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: node04/127.17.0.224:9000. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
2015-12-11 10:15:19,699 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: node04/127.17.0.224:9000. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
2015-12-11 10:15:20,699 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: node04/127.17.0.224:9000. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
每个节点/etc/hosts都包含以下内容:

127.0.0.1       localhost

127.17.0.221    node01
127.17.0.222    node02
127.17.0.223    node03
127.17.0.224    node04
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
和/etc/hadoop/masters包含
node04
,/etc/hadoop/slaves包含
node01 node02
node03

你能帮我弄清楚怎么去吗? 谢谢

执行以下操作:

  • 转到node02并运行
    telnet node04 9000
    ping node04
    命令 确认节点02和节点04之间存在连接
  • 在所有节点上,检查core-site.xml和hdfs-site.xml是否具有相同的内容
  • 检查ssh和sshd
  • 节点之间的ssh连接
  • 检查端口绑定详细信息()

  • 另请参阅telnet node04 9000的以下输出:Trying 127.17.0.224。。。telnet:无法连接到远程主机:连接被拒绝PING node04已输出:PING node04(127.17.0.224)56(84)字节的数据。来自node04的64字节(127.17.0.224):icmp_-seq=1 ttl=64 time=0.020 ms来自node04的64字节(127.17.0.224):icmp_-seq=2 ttl=64 time=0.008 msi对于core-site.xml和hfs-site.xmlI具有相同的配置。我可以在node04(线虫)和node02(数据节点)之间进行ssh。您检查了提到的链接吗。