Support Questions

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

Unable to install Ambari server and agent

avatar
Contributor
1 ACCEPTED SOLUTION

avatar
Contributor

Just to filter possibility of any issues with the setup of that particular instance of Centos, I tried installing on another instance as well, but it still fails.

Also to nullify any connection issues, I tried curl on the GPG key from ambari.repo - it works fine and downloads the key.

Surprise.. Surprise.. I just tried Ambari 2.0.0 installation and it works fine.. So it may be problem with Ambari 2.5.2.0 (In fact entire 2.x I think) repository.

View solution in original post

21 REPLIES 21

avatar
Master Mentor

Bizarre, can you post the content of

# cat /etc/resolv.conf 

The rerun the below

# yum clean all 
# yum clean metadata

Then

#  yum install -y ambari-server

Let me know

avatar
Contributor
# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search domain.name pc.com
nameserver 192.168.1.1

domain name above is dummy one and nameserver IP is actually that of my router. could that be a problem? But... I remember having worked in similar setup in past, though long back.

# yum clean all
Loaded plugins: fastestmirror, security
Cleaning repos: ambari-2.5.2.0 base extras updates
Cleaning up Everything
Cleaning up list of fastest mirror
# yum clean metadata
Loaded plugins: fastestmirror, security
Cleaning repos: ambari-2.5.2.0 base extras updates
0 metadata files removed
0 sqlite files removed
0 metadata files removed
yum install -y ambari-server
Loaded plugins: fastestmirror, security
Setting up Install Process
Determining fastest mirrors
 * base: mirrors.viethosting.com
 * extras: mirror.digistar.vn
 * updates: mirrors.vinahost.vn
ambari-2.5.2.0                                           | 2.9 kB     00:00
ambari-2.5.2.0/primary_db                                | 8.6 kB     00:00
base                                                     | 3.7 kB     00:00
base/primary_db                                          | 3.7 MB     00:15
extras                                                   | 3.3 kB     00:00
extras/primary_db                                        |  21 kB     00:00
updates                                                  | 3.4 kB     00:00
updates/primary_db                                       | 3.0 MB     00:25
No package ambari-server available.
Error: Nothing to do

avatar
Master Mentor

@Prashant Chaudhuri

Can you edit your resolv.conf and add the 2 names server before your router like this

nameserver 8.8.8.8 
nameserver 8.8.4.4 
nameserver 192.168.1.1

he rerun the below

# yum clean all 
# yum clean metadata

Then

#  yum install -y ambari-server

And revert

avatar
Contributor

changed resolv.conf and tried above commands. Still no success.

avatar
Master Mentor

@Prashant Chaudhuri

Can you add the below line in /etc/yum.conf

http_caching=packages

The re-run the previous commands

avatar
Contributor

Thanks. Done, but no success yet.

avatar
Contributor

Just to filter possibility of any issues with the setup of that particular instance of Centos, I tried installing on another instance as well, but it still fails.

Also to nullify any connection issues, I tried curl on the GPG key from ambari.repo - it works fine and downloads the key.

Surprise.. Surprise.. I just tried Ambari 2.0.0 installation and it works fine.. So it may be problem with Ambari 2.5.2.0 (In fact entire 2.x I think) repository.

avatar
Explorer

+1 2.5.2.0 version has the problem. 2.5.1.0 version works fine.

avatar
Contributor

is there a solution to this issue?

avatar
Explorer

please correct the repo file path. 2.5.2.0 also works fine with corrected path. Observer ppc in the path correct it for ambari. Than you should be good. I have done this for RHEL 7.