- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Ambari is unable to fetch Host Components
- Labels:
-
Apache Ambari
Created 12-08-2016 06:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ambari is not able to load service details for all the components like (Hbase,hdfs,zookeeper etc.) after upgrading Ambari from 2.1.2 to 2.4.2. The error found in ambari-server logs is,
22:43:27,505 WARN [ambari-client-thread-2495] ServletHandler:561 - Error Processing URI: /api/v1/clusters/<CLUSTER_NAME>/host_components - (java.lang.ArrayIndexOutOfBoundsException) 1
07 Dec 2016 22:43:27,505 ERROR [ambari-client-thread-2495] ContainerResponse:419 - The RuntimeException could not be mapped to a response, re-throwing to the HTTP container java.lang.ArrayIndexOutOfBoundsException: 1 at org.apache.ambari.server.controller.internal.ResourceManagerHttpPropertyRequest.getConfigPortValue(ResourceManagerHttpPropertyRequest.java:120) at org.apache.ambari.server.controller.internal.ResourceManagerHttpPropertyRequest.getPort(ResourceManagerHttpPropertyRequest.java:93) at org.apache.ambari.server.controller.internal.ResourceManagerHttpPropertyRequest.getUrl(ResourceManagerHttpPropertyRequest.java:77) at org.apache.ambari.server.controller.internal.HttpPropertyProvider.populateResource(HttpPropertyProvider.java:133) at org.apache.ambari.server.controller.internal.HttpPropertyProvider.populateResources(HttpPropertyProvider.java:117) at org.apache.ambari.server.controller.internal.ClusterControllerImpl.populateResources(ClusterControllerImpl.java:155) at org.apache.ambari.server.api.query.QueryImpl.queryForResources(QueryImpl.java:424) at org.apache.ambari.server.api.query.QueryImpl.execute(QueryImpl.java:222) at org.apache.ambari.server.api.handlers.ReadHandler.handleRequest(ReadHandler.java:77) at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:145) at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:126) at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:90) at org.apache.ambari.server.api.services.HostComponentService.getHostComponents(HostComponentService.java:104) at sun.reflect.GeneratedMethodAccessor253.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) 07 Dec 2016
Created 12-08-2016 07:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you pelase check if the following properties are set correctly? yarn.resourcemanager.webapp.https.address.XYZ with port 8090 (default)
Example:
yarn.resourcemanager.webapp.https.address = erie3.example.com:8090 yarn.resourcemanager.webapp.https.address.rm1 = erie3.example.com:8090 yarn.resourcemanager.webapp.https.address.rm2 = erie2.example.com:8090
Similarly please check the
yarn.resourcemanager.webapp.address
- Please make sure that the Port is mentioned in the address. Missing port can cause this issue.
.
Created 12-08-2016 07:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you pelase check if the following properties are set correctly? yarn.resourcemanager.webapp.https.address.XYZ with port 8090 (default)
Example:
yarn.resourcemanager.webapp.https.address = erie3.example.com:8090 yarn.resourcemanager.webapp.https.address.rm1 = erie3.example.com:8090 yarn.resourcemanager.webapp.https.address.rm2 = erie2.example.com:8090
Similarly please check the
yarn.resourcemanager.webapp.address
- Please make sure that the Port is mentioned in the address. Missing port can cause this issue.
.
Created 12-08-2016 08:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi jss,
Thanks for a quick response. This is what i can see,
yarn.resourcemanager.webapp.https.address=<hostname>:8090 yarn.resourcemanager.hostname.rm1=<hostname> yarn.resourcemanager.webapp.address.rm1=<hostname> yarn.resourcemanager.hostname.rm2=<hostname> yarn.resourcemanager.webapp.address=<hostname>:8088
We have two more cluster where we are running version 2.4.1.0 of Ambari. The two are working fine with above properties. Is there any major change in Ambari 2.4.2?
Please suggest.
Created 12-08-2016 09:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By adding the port solves the issue.
Thanks a lot @jss