hadoop 2.2.0 resourcemanager无法绑定到端口8088

iaqfqrcu  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(760)

我已经在ubuntu上成功运行hadoop 2.2.0版几个星期了。我以前的经验是1.0.1。我在运行ubuntu13.10时安装了新的build-essential,并安装了手动安装的hadoop环境。这个ubuntu盒子还有一个lamp环境,它正在成功运行。我从wordcount开始,在示例之外构建了模式匹配功能。所有这些都按预期编译和执行。然而,我有一个最近发展起来的问题。我无法让resourcemanager再成功绑定到8088。
在yarn-site.xml文件中没有任何更改。

<property>
<name>yarn.resourcemanager.address</name>
    <value>superghdp220:8088</value>
</property>

主机名返回正确,我的ip地址在ifconfig中 checkout ,并且主机文件与该ip地址匹配。
apache正在端口80上运行并返回“Itworks!”横幅。
jps的输出如下

hduser@superghdp220:/usr/local/hadoop$ jps
19876 NameNode
20741 Jps
19997 DataNode
20175 SecondaryNameNode
20479 NodeManager

输出 sudo netstat -an | grep ':8088' 返回null
输出 sudo netstat -a -t --numeric-ports -p 返回所有绑定端口,但8088不在列表中。
最后是yarn-hduser-resourcemanager-superghdp220.log的最后一行有用的输出

org.apache.hadoop.yarn.server.resourcemanager.rmcontainer.ContainerAllocationExpirer thread interrupted
2014-04-03 11:17:27,638 FATAL org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Error starting ResourceManager
org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.net.BindException: Problem binding to [superghdp220:8088] java.net.BindException: Address already in use; For more details see:  http://wiki.apache.org/hadoop/BindException
    at org.apache.hadoop.yarn.factories.impl.pb.RpcServerFactoryPBImpl.getServer(RpcServerFactoryPBImpl.java:139)
    at org.apache.hadoop.yarn.ipc.HadoopYarnProtoRPC.getServer(HadoopYarnProtoRPC.java:65)
    at org.apache.hadoop.yarn.ipc.YarnRPC.getServer(YarnRPC.java:54)
    at org.apache.hadoop.yarn.server.resourcemanager.ClientRMService.serviceStart(ClientRMService.java:149)
    at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
    at org.apache.hadoop.service.CompositeService.serviceStart(CompositeService.java:121)
    at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceStart(ResourceManager.java:671)
    at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
    at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:872)
Caused by: java.net.BindException: Problem binding to [superghdp220:8088] java.net.BindException: Address already in use; For more details see:  http://wiki.apache.org/hadoop/BindException
    at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:719)
    at org.apache.hadoop.ipc.Server.bind(Server.java:422)
    at org.apache.hadoop.ipc.Server$Listener.<init>(Server.java:534)
    at org.apache.hadoop.ipc.Server.<init>(Server.java:2203)
    at org.apache.hadoop.ipc.RPC$Server.<init>(RPC.java:897)
    at org.apache.hadoop.ipc.ProtobufRpcEngine$Server.<init>(ProtobufRpcEngine.java:505)
    at org.apache.hadoop.ipc.ProtobufRpcEngine.getServer(ProtobufRpcEngine.java:480)
    at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:742)
    at org.apache.hadoop.yarn.factories.impl.pb.RpcServerFactoryPBImpl.createServer(RpcServerFactoryPBImpl.java:169)
    at org.apache.hadoop.yarn.factories.impl.pb.RpcServerFactoryPBImpl.getServer(RpcServerFactoryPBImpl.java:132)
    ... 8 more
2014-04-03 11:17:27,655 INFO org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down ResourceManager at superghdp220/192.168.137.160

************************************************************/

任何见解或帮助都将不胜感激。谢谢你的阅读,帕特

x0fgdtte

x0fgdtte1#

8088默认由“yarn.resourcemanager.webapp.address”使用(您可以查看此文档了解更多详细信息:https://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-common/yarn-default.xml)
因此,您可以尝试在yarn.resourcemanager.webapp.address或yarn.resourcemanager.address中更改端口

相关问题