Configuring Hadoop clusters under CentOS: java.net.NoRouteToHostException:No route to host problem resolution

Source: Internet
Author: User

I'm using Hadoop 1.2.1.

The problems encountered are:

Datanode cannot start in Hadoop, caused By:java.net.NoRouteToHostException:No route to host
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 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.had Oop.ipc.Client.wrapException (client.java:775) at Org.apache.hadoop.ipc.Client.call (client.java:743) at ORG.A Pache.hadoop.ipc.rpc$invoker.invoke (rpc.java:220) at $Proxy 4.getProtocolVersion (Unknown Source) at Org.apach E.hadoop.ipc.rpc.getproxy (rpc.java:359) at Org.apache.hadoop.ipc.RPC.getProxy (rpc.java:346) at Org.apache.ha Doop.ipc.RPC.getProxy (rpc.java:383) at Org.apache.hadoop.ipc.RPC.waitForProxy (rpc.java:314) at Org.apache.ha Doop.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.<init> (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 Me Thod) at Sun.nio.ch.SocketChannelImpl.finishConnect (socketchannelimpl.java:692) at Org.apache.hadoop.net.Soc Ketiowithtimeout.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.Cl ient$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) ... More


Switch the root user to shut down all firewalls on the machine.

Reboot. Success.

Be sure to start from the new, because there is no start, I have not been configured well!

Configuring Hadoop clusters under CentOS: java.net.NoRouteToHostException:No route to host problem resolution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.