Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Host not found, hostname=

Re: Host not found, hostname=

Super Mentor

@Tom Burke

You can also open the same URL from the Browser where you have logged in the Ambari UI as well.,Hosts/host_name


(OR) You can use the following curl call to produce the JSON output to some file like "/tmp/hosts.json". Also pleas emake sure to use the correct cluster name in the same URL.

# curl -k -H "X-Requested-By: ambari" -u admin:admin ",Hosts/host_name" -o "/tmp/hosts.json"



Re: Host not found, hostname=

Expert Contributor

hi @Jay Kumar SenSharma,

i am upgrading from HDP 2.6.2 to HDP 3.1, i am using Ambari and currently stuck on (generate missing principal ), my cluster is kerberized, the machine hosting ambari server doesn't have ambari agent, and i am also getting the same error (host not found) for the ambari master machine , below is the exact error from ambari server log

2019-05-07 16:55:58,023  WARN [Server Action Executor Worker 3611] ServerActionExecutor:471 - Task #3611 failed to complete execution due to thrown exception: org.apache.ambari.server.HostNotFoundException:Host not found,
org.apache.ambari.server.HostNotFoundException: Host not found,
        at org.apache.ambari.server.state.cluster.ClustersImpl.getHost(
        at org.apache.ambari.server.state.ConfigHelper.getEffectiveDesiredTags(
        at org.apache.ambari.server.state.ConfigHelper.getEffectiveDesiredTags(
        at org.apache.ambari.server.controller.AmbariManagementControllerImpl.findConfigurationTagsWithOverrides(
        at sun.reflect.GeneratedMethodAccessor424.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at com.sun.proxy.$Proxy131.findConfigurationTagsWithOverrides(Unknown Source)
        at org.apache.ambari.server.state.ConfigHelper.calculateExistingConfigurations(
        at org.apache.ambari.server.controller.KerberosHelperImpl.calculateConfigurations(
        at org.apache.ambari.server.controller.KerberosHelperImpl.getActiveIdentities(
        at org.apache.ambari.server.serveraction.kerberos.KerberosServerAction.calculateServiceIdentities(
        at org.apache.ambari.server.serveraction.kerberos.KerberosServerAction.processIdentities(
        at org.apache.ambari.server.serveraction.kerberos.CreatePrincipalsServerAction.execute(
        at org.apache.ambari.server.serveraction.ServerActionExecutor$Worker.execute(
        at org.apache.ambari.server.serveraction.ServerActionExecutor$

can you please suggest what to do?