博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CentOS下配置Hadoop集群:java.net.NoRouteToHostException: No route to host问题的解决
阅读量:6235 次
发布时间:2019-06-22

本文共 3551 字,大约阅读时间需要 11 分钟。

我用的是hadoop 1.2.1

遇到的问题是:

2013-06-11 02:22:13,637 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: STARTUP_MSG:/************************************************************STARTUP_MSG: Starting DataNodeSTARTUP_MSG:   host = slave2/192.168.137.112STARTUP_MSG:   args = []STARTUP_MSG:   version = 0.20.2STARTUP_MSG:   build = https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20 -r 911707; compiled by 'chrisdo' on Fri Feb 19 08:07:34 UTC 2010************************************************************/2013-06-11 02:22:14,931 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.137.110:9000. Already tried 0 time(s).2013-06-11 02:22:15,932 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.137.110:9000. Already tried 1 time(s).2013-06-11 02:22:16,934 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.137.110:9000. Already tried 2 time(s).2013-06-11 02:22:17,952 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.137.110:9000. Already tried 3 time(s).2013-06-11 02:22:18,954 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.137.110:9000. Already tried 4 time(s).2013-06-11 02:22:19,957 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.137.110:9000. Already tried 5 time(s).2013-06-11 02:22:20,959 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.137.110:9000. Already tried 6 time(s). 2013-06-11 02:22:23,978 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.io.IOException: Call to master/192.168.137.110:9000 failed on local exception: java.net.NoRouteToHostException: No route to host        at org.apache.hadoop.ipc.Client.wrapException(Client.java:775)        at org.apache.hadoop.ipc.Client.call(Client.java:743)        at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220)        at $Proxy4.getProtocolVersion(Unknown Source)        at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:359)        at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:346)        at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:383)        at org.apache.hadoop.ipc.RPC.waitForProxy(RPC.java:314)        at org.apache.hadoop.ipc.RPC.waitForProxy(RPC.java:291)        at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:269)        at org.apache.hadoop.hdfs.server.datanode.DataNode.
(DataNode.java:216) at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:1283) at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:1238) at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:1246) at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:1368) Caused by: java.net.NoRouteToHostException: No route to host at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692) at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206) at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:404) at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:304) at org.apache.hadoop.ipc.Client$Connection.access$1700(Client.java:176) at org.apache.hadoop.ipc.Client.getConnection(Client.java:860) at org.apache.hadoop.ipc.Client.call(Client.java:720) ... 13 more

切换root用户将所有机器上的防火墙都关闭。

重新启动。成功。

一定要从新启动,是因为没有启动,我一直就没有配置好!

 

转载地址:http://feqna.baihongyu.com/

你可能感兴趣的文章
Query Designer:Variable 变量
查看>>
python进阶八_警告和异常
查看>>
Tomcat JVM
查看>>
基础才是重中之重~多线程的代价~我的内存都被吃了!
查看>>
学习boost::asio一些小例子
查看>>
[转]Linq 如何实现 in 与 not in
查看>>
怎样修复“Windows/System32/Config/System中文件丢失或损坏”故障
查看>>
C#:控制台程序调用中间库创建窗体
查看>>
运用Android ROM Manager应用安装ClockworkMod Recovery的详细教程
查看>>
selenium-Locating Elements
查看>>
构建ASP.NET MVC4+EF5+EasyUI+Unity2.x注入的后台管理系统(44)-工作流设计-设计表单...
查看>>
如何定时备份远程mysql数据库
查看>>
【行业翘楚】井田云:化解线上线下冲突让鱼与熊掌皆得
查看>>
System.currentTimeMillis();
查看>>
keil中的存储模式
查看>>
jQuery EasyUI API 中文文档 - Panel面板
查看>>
egrep 查找IP
查看>>
从子集和问题的动态规划解看判断问题与优化问题的区别与联系
查看>>
Effective C++:条款28:避免返回 handles 指向对象内部成员
查看>>
gulp-notify处理报错----gulp系列(二)
查看>>