Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Celebrating as our community reaches 100,000 members! Thank you!
avatar
Contributor

PROBLEM: Installation fails with different HDP version than desired when registering a node via Ambari.

For example: When registering and installing hdp 2.4.3 and some host fails on installation and tries to install hdp 2.5.3

Error:

2017-05-13 20:37:05,278 - Will install packages for repository version 2.4.3.0-227
2017-05-13 20:37:05,278 - Repository['HDP-2.4.3.0-227'] {'append_to_file': False, 'base_url': 'http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.4.3.0/', 'action': ['create'], 'components': ['HDP', 'main'], 'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'HDP-2.4.3.0-227', 'mirror_list': None}
2017-05-13 20:37:05,317 - File['/etc/yum.repos.d/HDP-2.4.3.0-227.repo'] {'content': '[HDP-2.4.3.0-227]\nname=HDP-2.4.3.0-227\nbaseurl=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.4.3.0/\n\npath=/\nenabled=1\ngpgcheck=0'}
2017-05-13 20:37:05,439 - Writing File['/etc/yum.repos.d/HDP-2.4.3.0-227.repo'] because contents don't match
2017-05-13 20:37:05,461 - Repository['HDP-UTILS-2.4.3.0-227'] {'append_to_file': True, 'base_url': 'http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/centos6', 'action': ['create'], 'components': ['HDP-UTILS', 'main'], 'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'HDP-2.4.3.0-227', 'mirror_list': None}2017-05-13 20:37:05,486 - File['/etc/yum.repos.d/HDP-2.4.3.0-227.repo'] {'content': '[HDP-2.4.3.0-227]\nname=HDP-2.4.3.0-227\nbaseurl=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.4.3.0/\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-UTILS-2.4.3.0-227]\nname=HDP-UTILS-2.4.3.0-227\nbaseurl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/centos6\n\npath=/\nenabled=1\ngpgcheck=0'}
2017-05-13 20:37:05,560 - Writing File['/etc/yum.repos.d/HDP-2.4.3.0-227.repo'] because contents don't match
2017-05-13 20:37:05,584 - call[('ambari-python-wrap', '/usr/bin/hdp-select', 'versions')] {}
2017-05-13 20:37:05,618 - call returned (0, '2.3.6.0-3796\n2.4.0.0-169\n2.5.3.19-2')
2017-05-13 20:37:05,619 - Package['hdp-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5, 'action': ['upgrade']}
2017-05-13 20:37:05,623 - Installing package hdp-select ('/usr/bin/yum -d 0 -e 0 -y install hdp-select')
2017-05-13 20:37:10,441 - checked_call['rpm -q --queryformat '%{version}-%{release}' hdp-select | sed -e 's/\.el[0-9]//g''] {'stderr': -1}
2017-05-13 20:37:10,485 - checked_call returned (0, '2.5.3.19-2', '')
2017-05-13 20:37:10,486 - Package['hive_2_5_3_19_2'] {'retry_on_repo_unavailability': False, 'retry_count': 5, 'action': ['upgrade']}

ROOT CAUSE: "hdp-select" is of higher version is installed than desired version.This could happen when hosts were used in any other cluster and re-used without proper cleanup.

[root@host3 ~]# rpm -q --queryformat '%{version}-%{release}' hdp-select | sed -e 's/\.el[0-9]//g'2.5.3.19-2

[root@host2 ~]# rpm -q --queryformat '%{version}-%{release}' hdp-select | sed -e 's/\.el[0-9]//g'2.4.3.0-227

SOLUTION: Downgrade "hdp-select" package to desired version according to cluster version.

840 Views