Skip to content

Instantly share code, notes, and snippets.

@M2shad0w
Created February 17, 2017 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save M2shad0w/915104f91e2c94c951e4dc726fd871e0 to your computer and use it in GitHub Desktop.
Save M2shad0w/915104f91e2c94c951e4dc726fd871e0 to your computer and use it in GitHub Desktop.
hadoop start datanode error

error

27-172.16.10.16-1467200716990:blk_1074065552_324924 to 172.16.10.5:50010 got
java.net.NoRouteToHostException: 没有到主机的路由
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
	at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
	at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:531)
	at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:495)
	at org.apache.hadoop.hdfs.server.datanode.DataNode$DataTransfer.run(DataNode.java:2144)
	at java.lang.Thread.run(Thread.java:745)

fix

centos 7
sudo systemctl stop firewalld.service # 关闭
sudo systemctl disable firewalld.service # 关闭开机启动
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment