hadoop datanode未在从属计算机中运行

jrcvhitl  于 2021-05-29  发布在  Hadoop
关注(0)|答案(0)|浏览(227)

在datanode日志中获取以下错误,如屏幕截图所示。

尝试格式化namenode和stop-all.sh--start-all.sh。运气不好。
清除了/app/hadoop/tmp文件夹两次以上。

2018-07-10 19:02:12,715 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: Exception in secureMain
java.net.BindException: Port in use: localhost:0
at org.apache.hadoop.http.HttpServer2.constructBindException(HttpServer2.java:1014)
at org.apache.hadoop.http.HttpServer2.bindForSinglePort(HttpServer2.java:1037)
at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:1094)
at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:951)
at org.apache.hadoop.hdfs.server.datanode.web.DatanodeHttpServer.<init>(DatanodeHttpServer.java:135)
at org.apache.hadoop.hdfs.server.datanode.DataNode.startInfoServer(DataNode.java:962)
at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:1370)
at org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(DataNode.java:495)
at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2695)
at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2598)
at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2645)
at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2789)
at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2813)
Caused by: java.net.BindException: Cannot assign requested address
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
at org.apache.hadoop.http.HttpServer2.bindListener(HttpServer2.java:1002)
at org.apache.hadoop.http.HttpServer2.bindForSinglePort(HttpServer2.java:1033)
... 11 more
2018-07-10 19:02:12,726 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1: java.net.BindException: Port in use: localhost:0
2018-07-10 19:02:12,736 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG:

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题