![Ambari 服务器退出,但日志中没有错误消息](https://linux22.com/image/665443/Ambari%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E9%80%80%E5%87%BA%EF%BC%8C%E4%BD%86%E6%97%A5%E5%BF%97%E4%B8%AD%E6%B2%A1%E6%9C%89%E9%94%99%E8%AF%AF%E6%B6%88%E6%81%AF.png)
我已经下载了Hortonworks Data Platform 2.3.0,并安装在Centos7上,安装成功。
启动服务器时将显示以下消息:
[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
但是服务器日志中没有任何错误。以下是摘录:
[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'
这可能是什么问题?
答案1
嗯,错误做显示 - 但在服务器中日志而不是。出去文件如错误消息中所述。
这是一个很容易解决的问题:需要设置不同的码头端口:
26 Aug 2015 00:43:35,377 WARN [main] AbstractLifeCycle:204 -
FAILED [email protected]:8080: java.net.BindException: Address already in use
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)