ambari-server 重启问题

发布于 2021-11-25 13:30:05 字数 13970 浏览 939 评论 1

Using python  /usr/bin/python2.6
Restarting ambari-server
Using python  /usr/bin/python2.6
Stopping ambari-server
Ambari Server is not running
Using python  /usr/bin/python2.6
Starting ambari-server
Ambari Server running with administrator privileges.
Organizing resource files at /var/lib/ambari-server/resources...
Server PID at: /var/run/ambari-server/ambari-server.pid
Server out at: /var/log/ambari-server/ambari-server.out
Server log at: /var/log/ambari-server/ambari-server.log
Waiting for server start.........
ERROR: Exiting with exit code -1.
REASON: Ambari Server java process died with exitcode 255. Check /var/log/ambari-server/ambari-server.out for more information.

log:

23 Jun 2015 14:55:10,135  INFO [main] ContextHandler:744 - started o.e.j.w.WebAppContext{/views/SLIDER/1.0.0/SLIDER_1,file:/var/lib/ambari-server/resources/views/work/SLIDER%7B1.0.0%7D/},/var/lib/ambari-server/resources/views/work/SLIDER{1.0.0}
23 Jun 2015 14:55:10,136  INFO [main] ContextHandler:744 - started o.e.j.s.ServletContextHandler{/,file:/usr/lib/ambari-server/web/}
23 Jun 2015 14:55:10,331  INFO [qtp-client-18] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:12,210  WARN [main] AbstractLifeCycle:204 - FAILED SelectChannelConnector@0.0.0.0:8080: java.net.BindException: Address already in use
java.net.BindException: Address already in use
 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.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)
 at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
 at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)
 at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
 at org.eclipse.jetty.server.Server.doStart(Server.java:286)
 at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
 at org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:480)
 at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:688)
23 Jun 2015 14:55:12,212  WARN [main] AbstractLifeCycle:204 - FAILED org.eclipse.jetty.server.Server@4a7497ee: java.net.BindException: Address already in use
java.net.BindException: Address already in use
 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.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)
 at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
 at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)
 at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
 at org.eclipse.jetty.server.Server.doStart(Server.java:286)
 at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
 at org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:480)
 at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:688)
23 Jun 2015 14:55:12,212 ERROR [main] AmbariServer:501 - Could not bind to server port - instance may already be running. Terminating this instance.
java.net.BindException: Address already in use
 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.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)
 at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
 at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)
 at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
 at org.eclipse.jetty.server.Server.doStart(Server.java:286)
 at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
 at org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:480)
 at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:688)
23 Jun 2015 14:55:12,213 ERROR [main] AmbariServer:690 - Failed to run the Ambari Server
java.net.BindException: Address already in use
 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.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)
 at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
 at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)
 at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
 at org.eclipse.jetty.server.Server.doStart(Server.java:286)
 at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
 at org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:480)
 at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:688)
23 Jun 2015 14:55:12,214  INFO [main] ContextHandler:795 - stopped o.e.j.s.ServletContextHandler{/,file:/usr/lib/ambari-server/web/}
23 Jun 2015 14:55:12,218  INFO [main] ELContextCleaner:63 - javax.el.BeanELResolver purged
23 Jun 2015 14:55:12,218  INFO [main] ContextHandler:795 - stopped o.e.j.w.WebAppContext{/views/SLIDER/1.0.0/SLIDER_1,file:/var/lib/ambari-server/resources/views/work/SLIDER%7B1.0.0%7D/},/var/lib/ambari-server/resources/views/work/SLIDER{1.0.0}
23 Jun 2015 14:55:12,222  INFO [main] ContextHandler:795 - stopped o.e.j.w.WebAppContext{/views/CAPACITY-SCHEDULER/0.3.0/CS_1,file:/var/lib/ambari-server/resources/views/work/CAPACITY-SCHEDULER%7B0.3.0%7D/},/var/lib/ambari-server/resources/views/work/CAPACITY-SCHEDULER{0.3.0}
23 Jun 2015 14:55:12,223  INFO [main] ContextHandler:795 - stopped o.e.j.w.WebAppContext{/views/ADMIN_VIEW/2.0.0/INSTANCE,file:/var/lib/ambari-server/resources/views/work/ADMIN_VIEW%7B2.0.0%7D/},/var/lib/ambari-server/resources/views/work/ADMIN_VIEW{2.0.0}
23 Jun 2015 14:55:12,227  INFO [main] ELContextCleaner:63 - javax.el.BeanELResolver purged
23 Jun 2015 14:55:12,227  INFO [main] ContextHandler:795 - stopped o.e.j.w.WebAppContext{/views/HIVE/0.2.0/MyHive,file:/var/lib/ambari-server/resources/views/work/HIVE%7B0.2.0%7D/},/var/lib/ambari-server/resources/views/work/HIVE{0.2.0}
23 Jun 2015 14:55:12,231  INFO [main] ELContextCleaner:63 - javax.el.BeanELResolver purged
23 Jun 2015 14:55:12,232  INFO [main] ContextHandler:795 - stopped o.e.j.w.WebAppContext{/views/FILES/0.1.0/MyFiles,file:/var/lib/ambari-server/resources/views/work/FILES%7B0.1.0%7D/},/var/lib/ambari-server/resources/views/work/FILES{0.1.0}
23 Jun 2015 14:55:12,235  INFO [main] ELContextCleaner:63 - javax.el.BeanELResolver purged
23 Jun 2015 14:55:12,235  INFO [main] ContextHandler:795 - stopped o.e.j.w.WebAppContext{/views/PIG/0.1.0/MyPig,file:/var/lib/ambari-server/resources/views/work/PIG%7B0.1.0%7D/},/var/lib/ambari-server/resources/views/work/PIG{0.1.0}
23 Jun 2015 14:55:16,624  INFO [qtp-client-20] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:18,616  INFO [qtp-client-20] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:18,617  INFO [qtp-client-21] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:18,624  INFO [qtp-client-22] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:18,625  INFO [qtp-client-18] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:18,629  INFO [qtp-client-93] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:18,629  INFO [qtp-client-23] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:18,638  INFO [qtp-client-18] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:18,639  INFO [qtp-client-21] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:22,985  INFO [qtp-client-22] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:29,221  INFO [qtp-client-22] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:33,639  INFO [qtp-client-21] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:33,640  INFO [qtp-client-23] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:33,647  INFO [qtp-client-20] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:33,652  INFO [qtp-client-93] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:33,655  INFO [qtp-client-22] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:33,657  INFO [qtp-client-18] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:33,658  INFO [qtp-client-21] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:33,662  INFO [qtp-client-93] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:35,481  INFO [qtp-client-23] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:41,710  INFO [qtp-client-22] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:47,928  INFO [qtp-client-20] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:48,664  INFO [qtp-client-23] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:48,668  INFO [qtp-client-21] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:48,674  INFO [qtp-client-22] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:48,677  INFO [qtp-client-18] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:48,683  INFO [qtp-client-20] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:48,684  INFO [qtp-client-93] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:48,691  INFO [qtp-client-23] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:48,691  INFO [qtp-client-21] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:55:54,258  INFO [qtp-client-23] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:56:00,516  INFO [qtp-client-93] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.
23 Jun 2015 14:56:03,698  INFO [qtp-client-22] MetricsPropertyProvider:168 - METRICS_COLLECTOR is not live. Skip populating resources with metrics.

看到log 是端口被占用,但是把所有端口的程序都杀到,重启还是不行。

删除这个软件重装也不行

 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜司空 2021-11-28 13:11:00

我在安装的过程中也遇到过这个问题,我的情况是当时执行ambari-server,在选择数据库时,我选择oracle,需要配置jdk、jdbc等参数,同事还要配置数据库客户端的连接设置,执行/var/lib/ambari-server/resources/目录下,两个oracle相关的*.sql文件,但是后面还是么能成功

我重新安装的时候选择的postgresql数据库,这个配置相对简单,而且是系统默认的选择的数据库,建议使用postgresql,在postgresql中执行*.sql文件命令是:i *.sql

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文