0

我从这里下载了 CDH 4.5 quick start vm 。在我打开“活动”选项卡查看 mapreduce 活动后,每个服务看起来都不错,除了以下错误:

The Activity Monitor server (activitymonitor (localhost)) is unavailable or not responding to connections.

尝试重新启动 Activity Monitor 服务后问题仍然存在,然后我在日志中发现以下错误消息。有人可以帮忙看看吗?

11:24:35.862 PM     WARN    org.mortbay.log     

failed SelectChannelConnector@localhost.localdomain:9999: java.net.BindException: Address already in use

11:24:35.864 PM     WARN    org.mortbay.log     

failed Server@59cc2f42: java.net.BindException: Address already in use

11:24:35.869 PM     ERROR   com.cloudera.cmon.firehose.Main     

Failed to start Firehose
com.cloudera.enterprise.EnterpriseServiceException: java.net.BindException: Address already in use
    at com.cloudera.cmon.firehose.AgentMessageService.startService(AgentMessageService.java:144)
    at com.cloudera.enterprise.EnterpriseService.start(EnterpriseService.java:71)
    at com.cloudera.enterprise.EnterpriseService.start(EnterpriseService.java:68)
    at com.cloudera.cmon.firehose.Main.main(Main.java:371)
Caused by: java.net.BindException: Address already in use
    at sun.nio.ch.Net.bind(Native Method)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
    at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
    at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:315)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.Server.doStart(Server.java:235)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at com.cloudera.cmon.firehose.AgentMessageService.startService(AgentMessageService.java:142)
    ... 3 more
4

1 回答 1

1

“java.net.BindException: Address already in use”明确指出端口 9999 已被其他服务占用。您必须检查服务的 PID 并停止它:

lsof -P | 听听 | grep 9999

使用 PID 杀死,或者如果您知道该服务,然后优雅地停止

于 2013-12-18T08:08:59.893 回答