Created on 09-26-2016 11:32 AM - edited 09-16-2022 03:41 AM
Team,
I am trying to upgrade from 2.3.4 to 2.5.0.0 and following give URL but getting error at installing steps.
2016-09-22 04:35:25,614 - Package Manager failed to install packages. Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install hdp-select' returned 1. Error: Cannot retrieve repository metadata (repomd.xml) for repository: HDP-2.5.0.0. Please verify its path and try again Traceback (most recent call last): File "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", line 363, in install_packages retry_count=agent_stack_retry_count File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in __init__ self.env.run() File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run self.run_action(resource, action) File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action provider_action() File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 58, in action_upgrade self.upgrade_package(package_name, self.resource.use_repos, self.resource.skip_repos) File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 54, in upgrade_package return self.install_package(name, use_repos, skip_repos, is_upgrade) File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 49, in install_package self.checked_call_with_retries(cmd, sudo=True, logoutput=self.get_logoutput()) File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 83, in checked_call_with_retries return self._call_with_retries(cmd, is_checked=True, **kwargs) File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 91, in _call_with_retries
Created 09-26-2016 02:11 PM
Please try the following:
wget -nv http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.5.0.0/hdp.repo -O /etc/yum.repos.d/hdp.repo yum clean all yum info hdp-select yum update hdp-select
Created 09-26-2016 11:53 AM
Can you please verify the BASE URL is correct in the repo files and is accessible from all the nodes?
Also, please if check if there any issues with network.
Created 09-26-2016 12:34 PM
@Ayub Pathan I am using following as base URL and don't see any n/w issue.
http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.5.0.0
Created 09-26-2016 01:39 PM
Created 09-26-2016 01:32 PM
Can you run the following command in your ambari server and let us know the output for further debugging.
/usr/bin/yum install hdp-select
Created 09-26-2016 01:54 PM
[root@m1 log]# /usr/bin/yum install hdp-select
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
epel/metalink | 5.1 kB 00:00
* base: ftp.iitm.ac.in
* epel: epel.mirror.net.in
* extras: ftp.iitm.ac.in
* updates: ftp.iitm.ac.in
HDP-2.3 | 2.9 kB 00:00
HDP-2.3/primary_db | 61 kB 00:00
HDP-2.3.4.0-3485 | 2.9 kB 00:00
HDP-2.3.4.0-3485/primary_db | 61 kB 00:00
HDP-2.5.0.0 | 2.9 kB 00:00
HDP-2.5.0.0/primary_db | 69 kB 00:00
HDP-UTILS-1.1.0.20 | 2.9 kB 00:00
HDP-UTILS-1.1.0.20/primary_db | 27 kB 00:00
HDP-UTILS-2.3.4.0-3485 | 2.9 kB 00:00
HDP-UTILS-2.3.4.0-3485/primary_db | 27 kB 00:00
HDP-UTILS-2.5.0.0 | 2.9 kB 00:00
HDP-UTILS-2.5.0.0/primary_db | 33 kB 00:00
Updates-ambari-2.4.0.1 | 2.9 kB 00:00
Updates-ambari-2.4.0.1/primary_db | 8.3 kB 00:00
base | 3.7 kB 00:00
base/primary_db | 4.7 MB 00:35
bintray--sbt-rpm | 1.3 kB 00:00
bintray--sbt-rpm/primary | 1.8 kB 00:00
bintray--sbt-rpm 11/11
epel | 4.3 kB 00:00
http://epel.mirror.net.in/epel/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel
Trying other mirror.
epel | 4.3 kB 00:00
epel/primary_db | 5.9 MB 00:24
extras | 3.4 kB 00:00
extras/primary_db | 37 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 2.0 MB 00:08
Package hdp-select-2.5.0.0-1245.el6.noarch already installed and latest version
Nothing to do
[root@m1 log]#
Created 09-26-2016 02:11 PM
Please try the following:
wget -nv http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.5.0.0/hdp.repo -O /etc/yum.repos.d/hdp.repo yum clean all yum info hdp-select yum update hdp-select
Created 09-27-2016 10:32 AM
@jk: There was some network slowness and it was getting timeout as well. So once that is resolved I ran your above give steps this problem resolved. It is being installed now without any other error.