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

Ambari host not found

Expert Contributor

I have been unsuccessfully trying to install via Ambari for (literally) years now on Ubuntu.

I have a cluster with master and slave2, 3 and 4.

I get 'Host not found, hostname=master' error.

I have tried both auto and manual registering. None of the 4 nodes registers.

I can ssh passwordless for master to the slaves and I am running the server on master. (I can't ssh in the other direction, does this matter?).

nmap -p 8440 master shows 8440, 8441 are open on master, 8670 is closed, does this matter?

Do the ports on slaves matter?

I have static IPs and my /etc/hosts are:

127.0.0.1 localhost 192.168.1.2 slave2 192.168.1.1 master 192.168.1.3 slave3 192.168.1.4 slave4

Any help is much appreciated, my network skills are minimal.

16 REPLIES 16

Re: Ambari host not found

Please share below command output from ambari hosts.

ping master
ssh root@master

Re: Ambari host not found

Expert Contributor

ping master PING master (192.168.1.1) 56(84) bytes of data. 64 bytes from master (192.168.1.1): icmp_seq=1 ttl=64 time=0.243 ms

ssh root@master ssh: connect to host master port 22: Connection refused

I'm using used hduser rather than root but it gave the same error.

Highlighted

Re: Ambari host not found

Please fix the ssh issue on master node and try again. Either ssh port is blocked or its not running or running on different port.

Re: Ambari host not found

Expert Contributor

It seems master is installing (might be stuck) but the others are not working and now the error

'Host not found, hostname=slave2'

not master.

rebooted and same except error:

Error executing bootstrap Cannot create /var/run/ambari-server/bootstrap

Re: Ambari host not found

Please check passwordless ssh is working on below nodes from master machine.

ssh root@slave2

ssh root@slave3

ssh root@slave4

Re: Ambari host not found

Expert Contributor

I've not found a way to do that for root in ubuntu, since there is no password for root. Can you tell me how?

Re: Ambari host not found

If you configured the password less ssh for root user through keys then why we need root password?

please refer this doc http://askubuntu.com/questions/115151/how-to-setup-passwordless-ssh-access-for-root-user

Re: Ambari host not found

Expert Contributor

I've tried that but when I do ssh-copy-id root@master it asks for root password.

Re: Ambari host not found

Expert Contributor

I think I have found a solution for that, will try later.