美文网首页
2021-10-17 hadoop3.2.2启动后无法访问

2021-10-17 hadoop3.2.2启动后无法访问

作者: MrSwilder | 来源:发表于2021-10-17 16:39 被阅读0次

1.最近在学习hadoop集群搭建的时候出现一个问题,搭建完成后启动9870端口没什么问题,但是8088端口启动不了

image.png

后来百度后多次检查自己配置没问题,后来查看日志,显示[(36条消息)

2021-10-17 16:15:58,797 ERROR org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Error starting ResourceManager
org.apache.hadoop.yarn.webapp.WebAppException: Error starting http server
      at org.apache.hadoop.yarn.webapp.WebApps$Builder.start(WebApps.java:453)
      at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.startWepApp(ResourceManager.java:1247)
      at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceStart(ResourceManager.java:1356)
      at org.apache.hadoop.service.AbstractService.start(AbstractService.java:194)
      at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1553)
Caused by: java.net.BindException: Port in use: hadoop103:8088
      at org.apache.hadoop.http.HttpServer2.constructBindException(HttpServer2.java:1231)
      at org.apache.hadoop.http.HttpServer2.bindForSinglePort(HttpServer2.java:1253)
      at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:1316)
      at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:1167)
      at org.apache.hadoop.yarn.webapp.WebApps$Builder.start(WebApps.java:449)
      ... 4 more
Caused by: java.io.IOException: Failed to bind to hadoop103/192.168.112.13:8088
      at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:346)
      at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:307)
      at org.apache.hadoop.http.HttpServer2.bindListener(HttpServer2.java:1218)
      at org.apache.hadoop.http.HttpServer2.bindForSinglePort(HttpServer2.java:1249)
      ... 7 more
Caused by: java.net.BindException: 无法指定被请求的地址
      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.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:342)
      ... 10 more

显示似乎是端口被占用了,但是端口也确实是被占用了,解决办法很简单,参考这篇文章得到灵感
Hadoop解决 java.net.BindException: Port in use: hadoop103:8088_Bonze-CSDN博客](https://blog.csdn.net/weixin_43950862/article/details/114481146)
解决方法很简单,我配置的启动resourcemanage的ip是hadoop103,只要进入hadoop103,停止再启动yarn就可以了,我之前好像是从hadoop104启动的

image.png

相关文章

网友评论

      本文标题:2021-10-17 hadoop3.2.2启动后无法访问

      本文链接:https://www.haomeiwen.com/subject/jtjwoltx.html