Created 05-08-2019 06:57 PM
Hi,
I am upgrading to to HDP 3.1, we have Ambari 2.7.3 and HDP 2.6.2 - Kerberos Enabled.
** Ambari Server is installed, but i dont have ambari-agent on that server, so it doesn't appear on the (api/v1/clusters/clustername/hosts?fields=Hosts/ip,Hosts/host_name)**
In step (Regenerate Missing Keytabs)
create principle its failing, giving an error (Host not found), i also checked the ambari-server log, and found the below exception :
Task #3611 failed to complete execution due to thrown exception: org.apache.ambari.server.HostNotFoundException:Host not found, hostname=myhost.mydomain.com org.apache.ambari.server.HostNotFoundException: Host not found, hostname=myhost.mydomain.com at org.apache.ambari.server.state.cluster.ClustersImpl.getHost(ClustersImpl.java:456) at org.apache.ambari.server.state.ConfigHelper.getEffectiveDesiredTags(ConfigHelper.java:189) at org.apache.ambari.server.state.ConfigHelper.getEffectiveDesiredTags(ConfigHelper.java:173) at org.apache.ambari.server.controller.AmbariManagementControllerImpl.findConfigurationTagsWithOverrides(AmbariManagementControllerImpl.java:2371) at sun.reflect.GeneratedMethodAccessor424.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:50) at com.sun.proxy.$Proxy131.findConfigurationTagsWithOverrides(Unknown Source) at org.apache.ambari.server.state.ConfigHelper.calculateExistingConfigurations(ConfigHelper.java:2158) at org.apache.ambari.server.controller.KerberosHelperImpl.calculateConfigurations(KerberosHelperImpl.java:1725) at org.apache.ambari.server.controller.KerberosHelperImpl.getActiveIdentities(KerberosHelperImpl.java:1800) at org.apache.ambari.server.serveraction.kerberos.KerberosServerAction.calculateServiceIdentities(KerberosServerAction.java:511) at org.apache.ambari.server.serveraction.kerberos.KerberosServerAction.processIdentities(KerberosServerAction.java:455) at org.apache.ambari.server.serveraction.kerberos.CreatePrincipalsServerAction.execute(CreatePrincipalsServerAction.java:92) at org.apache.ambari.server.serveraction.ServerActionExecutor$Worker.execute(ServerActionExecutor.java:550) at org.apache.ambari.server.serveraction.ServerActionExecutor$Worker.run(ServerActionExecutor.java:466) at java.lang.Thread.run(Thread.java:745) |
i removed the short name from the /etc/hosts, also the DNS server its pointing to the correct IPS, so when i try nslookup from any of the data nodes, its able to resolve the ambari server host name, any suggestions please ?
Created 05-08-2019 07:29 PM
Please have a look at this document org.apache.ambari.server.HostNotFoundException: Host not found it will help you resolve your problem
Hope that helps
Created 05-13-2019 04:46 AM
Any updates?
Created 05-13-2019 07:20 AM
thanks for your help, but in the document it mentioned that its not required that we have ambari agent running on ambari server machine, but actually its required , when we added the agent to the ambari server machine the error is gone, thanks again for help
Created 05-13-2019 07:35 AM
Hi @Tarek Abouzeid,
You where hitting : https://issues.apache.org/jira/browse/AMBARI-25088
the workaround was also mentioned in the Apache BUG,
This will be fixed in upcoming ambari versions 2.7.4 , as of now please install ambari-agent and register the host in ambari as a workaround.
If this Helps you please accept the best answer and close this thread.
Created 05-13-2019 02:54 PM
Can you run
# yum install ambari-agent
edit the ambari-agent.ini and ensure that the server points to the ambari server and retry