Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 09-12-2017 10:50 AM
Created 09-13-2017 04:49 AM
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.
Created 09-12-2017 10:58 AM
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
.
Created 09-12-2017 11:06 AM
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
.
Created 09-12-2017 12:50 PM
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.
Created 09-12-2017 11:09 AM
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.
Created 09-12-2017 11:22 AM
The path "/tmp/ambari.repo" was example path. The correct path should be :
# cat /etc/yum.repos.d/ambari.repo
.
Created 09-12-2017 11:21 AM
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
Created 09-12-2017 11:58 AM
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
Created 09-12-2017 12:59 PM
Can you confirm your ain't behind a proxy?
Just click this link to validate http://amibehindaproxy.com/
Created 09-12-2017 01:10 PM
No. The link confirms "No Proxy server detected".
Also re-checked my connection and found it's ok; but still the same result.