Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Ambari install failed

avatar
Contributor

Hi ALL,

I installed Ambari on Amazon EC2 with three virtual machines.

ubuntu16.4

I followed the guide from:

https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-installation/content/download_the...

But, I got the following error:

16691-169232020.jpg

16692-1356421982.jpg

I cam confirm that:

Ambari-agents are running on all hosts.

/etc/ambari-agent/conf/ambari-agent.ini are correct.

ssh working fine.

I don't know I missed?

1 ACCEPTED SOLUTION

avatar
Expert Contributor

1. make sure your ntpd, it need runing on all hosts. ntpd status and ntpd start

2. check your selinux file if SELINUX=disabled

3. your /etc/hosts file include all host privte ip and public ip. i.e. ip-..... ec2... 10.23.24.234

4. disable the iptables, service iptables stop. or systemctl stop firewall

5. reboot machine and make sure ntpd status is active.

this worked for me all the time. you need to clikc on the 'check here for warnings' to see exact info.

View solution in original post

8 REPLIES 8

avatar

Is the one that succeeded, running on the same host as the ambari-server? Perhaps there is no route to the server from the agents.

avatar
Contributor

Yes, the succeeded one is the one run as the server. Could you tell me how to route to the server?

Many thanks,

avatar
Master Guru
@Bin Ye

Can you please check if there is any firewall which is blocking connections on port 22? You can also try to register agents manually by installing ambari-agent on each machine --> editing /etc/ambari-agent/conf/agent.ini --> point it to correct ambari-server hostname --> select manual registration at the time of agent registration in Ambari.

Hope this helps.

avatar
Contributor

Hi,

i can ssh to all hosts passwordless.

i checked all hosts, ambari-agents are runing fine.

/etc/ambari-agent/conf/agent.ini are pointting to the correct server.

but still not working

avatar
Expert Contributor

1. make sure your ntpd, it need runing on all hosts. ntpd status and ntpd start

2. check your selinux file if SELINUX=disabled

3. your /etc/hosts file include all host privte ip and public ip. i.e. ip-..... ec2... 10.23.24.234

4. disable the iptables, service iptables stop. or systemctl stop firewall

5. reboot machine and make sure ntpd status is active.

this worked for me all the time. you need to clikc on the 'check here for warnings' to see exact info.

avatar
Contributor

Hi Robin Dong,

Many thanks for this,

I missed the hosts file

avatar
Expert Contributor

1. make sure your ntpd, it need runing on all hosts. ntpd status and ntpd start

2. check your selinux file if SELINUX=disabled

3. your /etc/hosts file include all host privte ip and public ip. i.e. ip-..... ec2... 10.23.24.234

4. disable the iptables, service iptables stop. or systemctl stop firewall

5. reboot machine and make sure ntpd status is active.

this worked for me all the time. you need to clikc on the 'check here for warnings' to see exact info.

avatar
Contributor

Hi,

Can u reset the ambari-agent in all servers and try to register.

amabri-agent reset <Ambari_host_name>