简体   繁体   English

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

[英]Hadoop Multi-Node Cluster: exception: java.net.ConnectException: Connection refused

I have set up 4 nodes hadoop cluster using http://pingax.com/install-apache-hadoop-ubuntu-cluster-setup/ : 我已经使用http://pingax.com/install-apache-hadoop-ubuntu-cluster-setup/设置了4个节点hadoop集群:

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

I can see only two nodes(node01,node03) running in my cluster. 我只能看到集群中有两个正在运行的节点(node01,node03)。 Node02 has an log with error message as: 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)

Every nodes /etc/hosts contains following: 每个节点/ 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

And /etc/hadoop/masters contains node04 , /etc/hadoop/slaves contains node01 node02 and node03 并且/ etc / hadoop / masters包含node04 ,/ etc / hadoop / slaves包含node01 node02node03

Would you please help me understand how to get to it? 您能帮我了解如何到达吗? Thanks! 谢谢!

Perform these actions: 执行以下操作:

  1. Go to node02 and run telnet node04 9000 and ping node04 commands to confirm there is connectivity between node02 and node04 转到node02并运行telnet node04 9000ping node04命令,以确认node02和node04之间存在连接
  2. On all nodes check whether core-site.xml and hdfs-site.xml have the same contents 在所有节点上,检查core-site.xml和hdfs-site.xml是否具有相同的内容
  1. Check ssh and sshd 检查ssh和sshd
  2. ssh connection between the nodes 节点之间的ssh连接
  3. Check port binding details ( Hadoop Datanodes cannot find NameNode ) 检查端口绑定详细信息( Hadoop数据节点找不到NameNode

Also refer https://wiki.apache.org/hadoop/ServerNotAvailable 另请参阅https://wiki.apache.org/hadoop/ServerNotAvailable

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Hadoop 集群设置 - java.net.ConnectException:连接被拒绝 - Hadoop cluster setup - java.net.ConnectException: Connection refused Hadoop:java.net.ConnectException:连接被拒绝 - Hadoop: java.net.ConnectException: Connection refused Hadoop - java.net.ConnectException:连接被拒绝 - Hadoop - java.net.ConnectException: Connection refused 无法在 Hadoop 3.2.1 上执行 hadoop jar 命令:连接异常失败:java.net.ConnectException:连接被拒绝; - Cannot do hadoop jar command on Hadoop 3.2.1 : failed on connection exception: java.net.ConnectException: Connection refused; 群集创建-AWS-EMR-*:9000在连接异常时失败:java.net.ConnectException:连接被拒绝; - Cluster creation - AWS - EMR - *:9000 failed on connection exception: java.net.ConnectException: Connection refused; 连接异常失败:java.net.ConnectException:配置单元中的连接被拒绝 - failed on connection exception: java.net.ConnectException: Connection refused in hive 多节点Hadoop问题(连接被拒绝) - Multi-node Hadoop Issue (Connection refused) OOZIE:发生连接异常[java.net.ConnectException连接被拒绝(连接被拒绝)] - OOZIE : Connection exception has occurred [ java.net.ConnectException Connection refused (Connection refused) ] java.net.ConnectException:使用Shell命令时Hadoop中的连接被拒绝 - java.net.ConnectException: Connection refused in Hadoop while using shell commands Hadoop独立安装-java.net.ConnectException:运行jar时出现连接拒绝错误 - Hadoop standalone installation - java.net.ConnectException: Connection refused error while running jar
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM