hadoop resourcemanager无法启动

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

我有以下错误,但是 netstat 显示8088未使用。
这是一个3节点集群,namenode,jobtracker,datanode运行在不同的ec2示例上

2014-02-04 02:49:43,519 FATAL 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:262)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.startWepApp(ResourceManager.java:623)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceStart(ResourceManager.java:655)
        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: Port in use: jobtracker.hdp-dev.XYZ.com:8088
        at org.apache.hadoop.http.HttpServer.openListener(HttpServer.java:742)
        at org.apache.hadoop.http.HttpServer.start(HttpServer.java:686)
        at org.apache.hadoop.yarn.webapp.WebApps$Builder.start(WebApps.java:257)
        ... 4 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:444)
        at sun.nio.ch.Net.bind(Net.java:436)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
        at org.apache.hadoop.http.HttpServer.openListener(HttpServer.java:738)
        ... 6 more
2014-02-04 02:49:43,522 INFO org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down ResourceManager at name01.hdp-dev.XYZ.com/10.xxx.xxx.xxx

************************************************************/
j91ykkif

j91ykkif1#

在基于debian的系统上,您可以在终端上运行类似apt cache policy zookeeper的程序。该命令将列出包zookeeper可用的所有存储库。如果zookeeper包可以从两个或更多的存储库获得:例如:ubuntu的raring universe存储库和cdh存储库。所以,你有个问题。特别了解这可能是一个包混合/匹配问题
解决方案是:在/etc/apt/preferences.d/cloudera.pref创建一个文件 包括以下内容:

Package: *
Pin: release o=Cloudera, l=Cloudera 
Pin-Priority: 501

创建此文件后不需要apt get update。这里,包的默认优先级是500。通过创建上面的文件,您为任何源代码被指定为“cloudera”(o=cloudera)并且来自cloudera的repo(l=cloudera)的包提供了更高的优先级501,这就完成了。。希望这有帮助。。

相关问题