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.

Ambari host not found

Re: Ambari host not found

Expert Contributor

I finally manged to get passwordless ssh to work from master root account to slave root acoounts but still the install fails either manually or auto. Host not found error.

Re: Ambari host not found

@ed day

Are you sure that you have made the same entry as following in all the hosts "/etc/hosts" file? (all the hosts from where you are trying to access the "master" host). And also please run the "hostname -f" command on each node/host to see it is matching the correct hostname or not?

127.0.0.1 localhost 
192.168.1.1 master 
192.168.1.2 slave2 
192.168.1.3 slave3 
192.168.1.4 slave4

Re: Ambari host not found

Expert Contributor

Yes I have checked them all.

Re: Ambari host not found

@ed day

see answer on thread

Highlighted

Re: Ambari host not found

Expert Contributor

Thanks Felix I've tried the advice here I know use master.abc.com and its ports are all open. Still get the same error.

Re: Ambari host not found

@ed day

Is the issue still exist ? Can you please paste the output of below commands -

$cat /etc/hosts - from ambari server and any one of agent node

$hostname

$hostname -f

Iptables should be stopped and selinux must be disabled.

8670 port must be open. Please check below link for port list - https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_reference_guide/content/_default_...

Re: Ambari host not found

Expert Contributor

Thanks Sagar! Yes it is still an issue.

on server:

$hostname

master

$hostname -f

master

root@master:~# iptables -L -n Chain INPUT (policy ACCEPT) target prot opt source destination

Chain FORWARD (policy ACCEPT) target prot opt source destination

Chain OUTPUT (policy ACCEPT) target prot opt source destination root@master:~# iptables -L -n Chain INPUT (policy ACCEPT) target prot opt source destination

Chain FORWARD (policy ACCEPT) target prot opt source destination

Chain OUTPUT (policy ACCEPT) target prot opt source destination root@master:~# service iptables stop Failed to stop iptables.service: Unit iptables.service not loaded.

No selinux in my Ubuntu.

ports:

root@master:~# netstat -tulnp | grep 8670 (this machine is also an agent so should this be open?)

root@master:~# netstat -tulnp | grep 8080

tcp6 0 0 :::8080 :::* LISTEN 1764/java

root@master:~# netstat -tulnp | grep 8440

tcp6 0 0 :::8440 :::* LISTEN 1764/java

root@master:~# netstat -tulnp | grep 8441

tcp6 0 0 :::8441 :::* LISTEN 1764/java

agent:

hduser@slave3:~$ sudo su -l root

[sudo] password for hduser:

root@slave3:~# hostname

slave3

root@slave3:~# hostname -f

slave3

root@slave3:~# iptables -L -n

Chain INPUT (policy ACCEPT)

target prot opt source destination

Chain FORWARD (policy ACCEPT)

target prot opt source destination

Chain OUTPUT (policy ACCEPT)

target prot opt source destination

root@slave3:~# netstat -tulnp | grep 8670

root@slave3:~# netstat -tulnp | grep 8080

root@slave3:~# netstat -tulnp | grep 8440

root@slave3:~# netstat -tulnp | grep 8441

Could it be the closed 8670 ports? and how do I open them?