首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Ambari服务器退出时日志中没有错误消息。

Ambari服务器退出时日志中没有错误消息。
EN

Server Fault用户
提问于 2015-08-26 00:54:08
回答 1查看 4.8K关注 0票数 1

我已经下载了Hortonworks数据平台2.3.0并在Centos7上安装了它。安装是成功的。

启动服务器时,将显示以下消息:

代码语言:javascript
运行
复制
[root@sparkperf-5360 apps]# ambari-server start
Using python  /usr/bin/python2.7
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

但是,服务器日志中没有任何错误。以下是一段节选:

代码语言:javascript
运行
复制
[EL Warning]: metadata: 2015-08-26 00:43:28.631--ServerSession(324035818)--The reference column name [resource_type_id] mapped on the element [field permissions] does not correspond to a valid id or basic field/column on the mapping reference. Will use referenced column name as provided.
[EL Info]: 2015-08-26 00:43:30.073--ServerSession(324035818)--EclipseLink, version: Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd
[EL Info]: connection: 2015-08-26 00:43:30.331--ServerSession(324035818)--file:/usr/lib/ambari-server/ambari-server-2.1.0.1470.jar_ambari-server_url=jdbc:postgresql://localhost/ambari_user=ambari login successful
Aug 26, 2015 12:43:32 AM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
  org.apache.ambari.server.api.rest
  org.apache.ambari.server.api.services
  org.apache.ambari.eventdb.webservice
  org.apache.ambari.server.api
Aug 26, 2015 12:43:34 AM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Root resource classes found:
  class org.apache.ambari.server.api.services.PersistKeyValueService
  class org.apache.ambari.server.api.services.ClusterService
  class org.apache.ambari.server.api.services.TargetClusterService

 ..

  Aug 26, 2015 12:43:34 AM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Provider classes found:
  class org.apache.ambari.eventdb.webservice.JAXBContextResolver
  class org.apache.ambari.server.api.GsonJsonProvider
Aug 26, 2015 12:43:34 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.18 11/22/2013 01:21 AM'
Aug 26, 2015 12:43:34 AM com.sun.jersey.spi.inject.Errors processErrorMessages
WARNING: The following warnings have been detected with resource and/or provider classes:
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.ambari.server.api.services.BlueprintService.getBlueprints(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo), should not consume any entity.
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.ambari.server.api.services.BlueprintService.getBlueprint(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo,java.lang.String), should not consume any entity.
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.ambari.server.api.services.RequestService.getRequests(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo), should not consume any entity.
 .. and many more similar WARNING's

INFO: Scanning for root resource and provider classes in the packages:
  org.apache.ambari.server.resources.api.rest
Aug 26, 2015 12:43:35 AM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Root resource classes found:
  class org.apache.ambari.server.resources.api.rest.GetResource
Aug 26, 2015 12:43:35 AM com.sun.jersey.api.core.ScanningResourceConfig init
INFO: No provider classes found.
Aug 26, 2015 12:43:35 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.18 11/22/2013 01:21 AM'

这里可能有什么问题?

EN

回答 1

Server Fault用户

发布于 2015-08-26 01:00:47

错误确实会出现--但是在服务器日志中,而不是在错误消息中描述的.out文件中。

它是一个很容易解决的项目:需要设置不同的码头端口:

代码语言:javascript
运行
复制
26 Aug 2015 00:43:35,377  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)
票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/716801

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档