1.问题描述:
Ambari 安装agent失败,通过ambari-server.log发现如下信息:1. error: 12 Jun 2017 18:11:26,144 ERROR [qtp-ambari-client-87] AbstractResourceProvider:280 - Caught AmbariException when creating a resource
org.apache.ambari.server.HostNotFoundException: Host not found, hostname=
at org.apache.ambari.server.state.cluster.ClustersImpl.getHost(ClustersImpl.java:370)
2. error: 12 Jun 2017 18:11:26,150 ERROR [qtp-ambari-client-87] BaseManagementHandler:57 - Caught a system exception while attempting to create a resource: An internal system exception occurred: Host not found, hostname=
org.apache.ambari.server.controller.spi.SystemException: An internal system exception occurred: Host not found, hostname=
3.warn:
12 Jun 2017 18:04:44,108 WARN [main] AmbariServer:622 - The configured Jetty qtp-ambari-agent thread pool value of 25 is not sufficient on a host with 80 processors. Increasing the value to 40.
在具有80个处理器的主机上,配置的Jetty qtp-ambari-agent线程池值为25是不够的。将值增加到40
4.warn:
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.FeedService.getFeeds(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.FeedService.getFeed(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.KerberosDescriptorService.getKerberosDescriptors(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.KerberosDescriptorService.getKerberosDescriptor(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo,java.lang.String), should not consume any entity.
2.问题原因:
如果服务器的CPU数量超过Jetty线程数量,Ambari Server将不会响应HTTP连接
1.修改文件:/etc/ambari-server/conf/ambari.properties,将以下参数设置为cpu的核数
agent.threadpool.size.max=<number of cores>
view.extraction.threadpool.size.max=<number of cores>
client.threadpool.size.max=<number of cores>
2.ambari-server restart
参考:
https://issues.apache.org/jira/browse/AMBARI-5639
https://community.hortonworks.com/questions/4584/could-not-connect-to-ambari-log-on-screen.html
https://issues.apache.org/jira/browse/AMBARI-9776
https://www.ibm.com/support/knowledgecenter/en/SSPT3X_4.3.0/com.ibm.swg.im.infosphere.biginsights.trb.doc/doc/trb_inst_ambariProperties.html
当服务器CPU数量超出Jetty线程设置时,Ambari Server出现HTTP连接无响应,导致安装agent失败。文章探讨了这一问题并提供解决方案。

4305

被折叠的 条评论
为什么被折叠?



