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

@Prashant Chaudhuri

Can you please check if your "/etc/yum.repos.d/ambari.repo" file has "enabled=1" value as following:

wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.5.2.0/ambari.repo -O /etc/yum.repos.d/ambari.repo

# cat /tmp/ambari.repo 
    #VERSION_NUMBER=2.5.2.0-298
    [ambari-2.5.2.0]
    name=ambari Version - ambari-2.5.2.0
    baseurl=http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.5.2.0
    gpgcheck=1
    gpgkey=http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.5.2.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
    enabled=1
    priority=1

.

Also please do a yum clean all and then try again, and please check the repo access from your host.

# yum clean all

.

avatar
Master Mentor

@Prashant Chaudhuri

Additionally in order to isolate any proxy issue please check if you are able to access the "repomd.xml" file from the ambari repo?

# wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.5.2.0/repodata/repomd.xml

.

Also check the "/etc/yum.conf" if any proxy is defined there? Or if you need any?

# grep 'proxy' /etc/yum.conf

.

avatar
Contributor

wget command works fine and downloads repomd.xml.

grep for 'proxy' returns nothing.

Actually I'm working from home, so usual corporate network restrictions do not apply in my case.

avatar
Contributor

Thanks for your quick response.

* I checked "/etc/yum.repos.d/ambari.repo" and it does have enabled flag = 1. However I do not have any ambari.repo file in /tmp.

* I did "yum clean all", checked ambari appears in repolist and ran "yum install ambari-server", but still the same failure.

avatar
Master Mentor

@Prashant Chaudhuri

The path "/tmp/ambari.repo" was example path. The correct path should be :

# cat /etc/yum.repos.d/ambari.repo 

.

avatar
Master Mentor

@Prashant Chaudhuri

Can you paste the contents of your. The /tmp/ambari.repo was just a typo error it should have been cat /etc/yum.repos.d/ambari.repo

# cat /etc/yum.repos.d/ambari.repo

# cat /etc/yum.repos.d/hdp.repo

Clean all the cached files from any enabled repository at once

yum clean all

Check the repolist

yum repolist 

The retry the

yum install -y ambari-server

avatar
Contributor

Thanks for your response Geoffrey.

cat /etc/yum.repos.d/ambari.repo

#VERSION_NUMBER=2.5.2.0-298
[ambari-2.5.2.0]
name=ambari Version - ambari-2.5.2.0
baseurl=http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.5.2.0
gpgcheck=1
gpgkey=http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.5.2.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1

I do not have HDP repo downloaded, hence I simply get following for hdp repository:

cat: /etc/yum.repos.d/hdp.repo: No such file or directory

After doing yum clean all and checking yum repolist (output of it below); I'm still getting message "No package ambari-server available.

# yum repolist
Loaded plugins: fastestmirror, security
Determining fastest mirrors
 * base: centos-hcm.viettelidc.com.vn
 * extras: mirrors.nhanhoa.com
 * updates: mirrors.nhanhoa.com
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:07
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:07
repo id                     repo name                                     status
ambari-2.5.2.0              ambari Version - ambari-2.5.2.0                  12
base                        CentOS-6 - Base                               5,079
extras                      CentOS-6 - Extras                                20
updates                     CentOS-6 - Updates                              485
repolist: 5,596
# yum install -y ambari-server
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos-hcm.viettelidc.com.vn
 * extras: mirrors.nhanhoa.com
 * updates: mirrors.nhanhoa.com
No package ambari-server available.
Error: Nothing to do

avatar
Master Mentor

@Prashant Chaudhuri

Can you confirm your ain't behind a proxy?

Just click this link to validate http://amibehindaproxy.com/

avatar
Contributor

No. The link confirms "No Proxy server detected".

Also re-checked my connection and found it's ok; but still the same result.