[英]Call to master failed org.apache.hadoop.hdfs.server.datanode.DataNode
I am facing following error in simple two machine hadoop cluster. 我在简单的两台机器hadoop集群中面临以下错误。
ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.io.IOException: Call to master/1.1.1.2:15000 failed on local exception: java.net.NoRouteToHostException: No route to host
On master machine my configuration are as. 在主计算机上,我的配置是。
hostname=master
in /etc/hosts
1.1.1.2 master
1.1.1.3 node1
core-site.xml contains core-site.xml包含
<property>
<name>fs.default.name</name>
<value>hdfs://master:15000/</value>
</property>
In mapred-site.xml 在mapred-site.xml中
<property>
<name>mapred.job.tracker</name>
<value>master:15001</value>
</property>
In conf/master contains
master
In conf/slaves contains
master
node1
I have same configuration on node1 except in conf/master,slaves conatins localhost. 除了在conf / master,slaves conatins localhost中,我在node1上有相同的配置。 My OS in CentOS 7. If I run hadoop in single mode, it work properly on both master and node1.
我在CentOS 7中的操作系统。如果我在单一模式下运行hadoop,则它可以在master和node1上正常工作。
Hostname of
node1 machine is node1
and in /etc/hosts
1.1.1.2 master
1.1.1.3 node1
Try to flush iptable like 尝试像这样刷新iptable
su -c "iptables -F" su -c“ iptables -F”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.