Support Questions
Find answers, ask questions, and share your expertise
Announcements
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=

Highlighted

Host not found, hostname=

New Contributor

At wits end wit this hortwork work platform , trying to get it kerborized.

The phase where it Testing Kerberos clients, keep getting this error that it cannot find the ambari host and displays the fqdn

The ambari host is name resolved by 2 hosted domains internally with no problem. ie ambari.example.com and ambari.corp.example.com. I also added this in /etc/hosts files on each server in cluster including ambari server , each maser node , slave node and DC on our network to eliminate DNS as an issue ( which I cannot believe it is as at teh command line these things can resolve all day long to each other) What logs can I examine to give more information on this error please?

var/log/ambari-server is not much help

11 REPLIES 11

Re: Host not found, hostname=

Super Mentor

@Tom Burke

If you define two hostname s inside the "/etc/hosts" file then you might find issues in kerberized environment

Example:

192.xx.yy.170    ambari.example.com   ambari.corp.example.com

.

In thew above case we might see that the kerberos clients resolves the incorrect hsotname. So can you please keep only one host there and then try again.

Also can you please share the complete message where you see "Host not found, hostname" that way we can check the exact code base to understand in which conditions it might show that message

Re: Host not found, hostname=

New Contributor

Hi Jay , thanks for reply.

I changed /etc/hosts on ambari to reflect your suggestion ( I have not done all in cluster as yet)

10.x.x.x ambari.example.com

trie to enable , still returns error on creating principles for ambari ....the error from /var/log/ambari-server/ambari-server.log is below. ( is there anyplace else to look?)

	2019-02-05 02:23:07,223  WARN [Server Action Executor Worker 1760] ServerActionExecutor:471 - Task #1760 failed to complete execution due to thrown exception: org.apache.ambari.server.HostNotFoundException:Host not found, hostname=ambari.example.com
org.apache.ambari.server.HostNotFoundException: Host not found, hostname=ambari.example.com
2019-02-05 19:29:02,615  WARN [Server Action Executor Worker 1801] ServerActionExecutor:471 - Task #1801 failed to complete execution due to thrown exception: org.apache.ambari.server.HostNotFoundException:Host not found, hostname=ambari.example.com
org.apache.ambari.server.HostNotFoundException: Host not found, hostname=ambari.example.com

Re: Host not found, hostname=

New Contributor

Does the Amabri server have to be "in" the cluster?

Re: Host not found, hostname=

New Contributor
	2019-02-05 02:23:07,223  WARN [Server Action Executor Worker 1760] ServerActionExecutor:471 - Task #1760 failed to complete execution due to thrown exception: org.apache.ambari.server.HostNotFoundException:Host not found, hostname=ambari.example.com
org.apache.ambari.server.HostNotFoundException: Host not found, hostname=ambari.example.com
2019-02-05 19:29:02,615  WARN [Server Action Executor Worker 1801] ServerActionExecutor:471 - Task #1801 failed to complete execution due to thrown exception: org.apache.ambari.server.HostNotFoundException:Host not found, hostname=ambari.example.com
org.apache.ambari.server.HostNotFoundException: Host not found, hostname=ambari.example.com

Re: Host not found, hostname=

New Contributor

Hi Jay thanks. Above is the error log from /var/log/ambari-server/ambari-server.log I added removed the corp/example/.cpom entries from /etc/hosts

Aside questions of anyone can answer...

: Is there any documentation to suggest that you cannot use ubuntu 18.04 as the server? every doc I read does not reference this version, seems to stop at ubuntu 12 or 14...

Does the ambari server need to be host member of cluster? ...

Re: Host not found, hostname=

Super Mentor

@Tom Burke

Regarding Ubuntu-18 supportability... you can refer to : Support matrix and click on your version of Ambari to see which all OS it is tested and certified to work with.

https://supportmatrix.hortonworks.com/

.

Regarding other query "Does the ambari server need to be host member of cluster? ..."

No, it is not mandatory to make AmbariServer host to be a member of Cluster.

Re: Host not found, hostname=

Super Mentor

@Tom Burke

Ideally the "/etc/hosts" file kept identical on all cluster nodes to avoid any kind of hostname confusions.

.

It is not mandatory to install Agent on the AmbariServer host. (that is optional)

.

Regarding the "HostNotFoundException" can you please share the output of the following API call to see the hostss (to find out if any conflict)

# curl -H "X-Requested-By: ambari" -u admin:admin http://$AMBARI_HOSTNAME:8080/api/v1/clusters/$CLUSTER_NAME/hosts?fields=Hosts/ip,Hosts/host_name

.

Re: Host not found, hostname=

New Contributor

ambari using ssl 8443 so used this otherwise connection refused.

root@ambari:~# curl -H "X-Requested-By: ambari" -u admin:admin http://ambari.example.com:8443/api/v1/clusters/cluster-name/hosts?fields=Hosts/ip,Hosts/host_name

Warning: Binary output can mess up your terminal. Use "--output -" to tell

Warning: curl to output it to your terminal anyway, or consider "--output

Warning: <FILE>" to save to a file.

Re: Host not found, hostname=

New Contributor

ambari using ssl 8443 so used this otherwise connection refused.

root@ambari:~# curl -H "X-Requested-By: ambari" -u admin:admin http://ambari.example.com:8443/api/v1/clusters/cluster-name/hosts?fields=Hosts/ip,Hosts/host_name

Warning: Binary output can mess up your terminal. Use "--output -" to tell

Warning: curl to output it to your terminal anyway, or consider "--output

Warning: <FILE>" to save to a file.