ResourceManage启动BindException: Cannot assign requested address

在尝试启动Hadoop Resource Manager时遇到了问题,具体表现为启动报错,错误信息显示端口8088已被使用。这通常是由于另一个进程已经在该端口上运行或者配置文件中配置的端口冲突导致的。解决方法包括检查并停止占用该端口的进程,或者修改Hadoop配置文件中ResourceManager的监听端口。
摘要由CSDN通过智能技术生成

Hadoop ResourceManage启动时报错

2022-08-19 01:28:58,994 INFO org.apache.hadoop.http.HttpServer2: HttpServer.start() threw a non Bind IOException
java.net.BindException: Port in use: hadoop131:8088
        at org.apache.hadoop.http.HttpServer2.constructBindException(HttpServer2.java:1292)
        at org.apache.hadoop.http.HttpServer2.bindForSinglePort(HttpServer2.java:1314)
        at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:1373)
        at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:1223)
        at org.apache.hadoop.yarn.webapp.WebApps$Builder.start(WebApps.java:472)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.startWepApp(ResourceManager.java:1275)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceStart(ResourceManager.java:1384)
        at org.apache.hadoop.service.AbstractService.start(AbstractService.java:194)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1585)
Caused by: java.io.IOException: Failed to bind to hadoop131/192.168.233.131: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:1279)
        at org.apache.hadoop.http.HttpServer2.bindForSinglePort(HttpServer2.java:1310)
        ... 7 more
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.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:342)
        ... 10 more
2022-08-19 01:28:59,011 INFO org.apache.hadoop.service.AbstractService: Service ResourceManager failed in state STARTED
org.apache.hadoop.yarn.webapp.WebAppException: Error starting http server
        at org.apache.hadoop.yarn.webapp.WebApps$Builder.start(WebApps.java:476)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.startWepApp(ResourceManager.java:1275)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceStart(ResourceManager.java:1384)
        at org.apache.hadoop.service.AbstractService.start(AbstractService.java:194)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1585)
Caused by: java.net.BindException: Port in use: hadoop131:8088
        at org.apache.hadoop.http.HttpServer2.constructBindException(HttpServer2.java:1292)
        at org.apache.hadoop.http.HttpServer2.bindForSinglePort(HttpServer2.java:1314)
        at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:1373)
        at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:1223)
        at org.apache.hadoop.yarn.webapp.WebApps$Builder.start(WebApps.java:472)
        ... 4 more
Caused by: java.io.IOException: Failed to bind to hadoop131/192.168.233.131: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:1279)
        at org.apache.hadoop.http.HttpServer2.bindForSinglePort(HttpServer2.java:1310)
        ... 7 more
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.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:342)
        ... 10 more
2022-08-19 01:28:59,017 INFO org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Transitioning to standby state
2022-08-19 01:28:59,017 INFO org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Transitioned to standby state
2022-08-19 01:28:59,017 ERROR org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Error starting ResourceManager

使用start-all.sh命令并不会启动ResourceManage,需要到启动NodeManage需要到对应的机器上去使用start-yarn.sh来启动

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值