Support Questions

Find answers, ask questions, and share your expertise

ambari upgrade + No package found for hadoop_${stack_version}(hadoop_(\d|_)+$)​

avatar

we we performing ambari upgrade to version 2.6.4

and we are getting the following error , ( in-spite repo defined in the ambari GUI and repo also exisit on each host )

2018-02-26 14:39:06,264 - No package found for hadoop_${stack_version}(hadoop_(\d|_)+$)
stdout:   /var/lib/ambari-agent/data/output-577.txt 
2018-02-26 14:38:51,380 - Will install packages for repository version 2.6.4.0
2018-02-26 14:38:51,381 - Repository['HDP-2.6-repo-101'] {'append_to_file': False, 'base_url': 'http://98.45.213.139/HDP/centos7/2.6.4.0-91', 'action': ['create'], 'components': [u'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': 'ambari-hdp-101', 'mirror_list': None}
2018-02-26 14:38:51,390 - File['/etc/yum.repos.d/ambari-hdp-101.repo'] {'content': '[HDP-2.6-repo-101]\nname=HDP-2.6-repo-101\nbaseurl=http://98.45.213.139/HDP/centos7/2.6.4.0-91\n\npath=/\nenabled=1\ngpgcheck=0'}
2018-02-26 14:38:51,392 - Writing File['/etc/yum.repos.d/ambari-hdp-101.repo'] because contents don't match
2018-02-26 14:38:51,392 - Repository['HDP-2.6-GPL-repo-101'] {'append_to_file': True, 'base_url': 'http://98.45.213.139/HDP-GPL/centos7/2.6.4.0-91', 'action': ['create'], 'components': [u'HDP-GPL', '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': 'ambari-hdp-101', 'mirror_list': None}
2018-02-26 14:38:51,397 - File['/etc/yum.repos.d/ambari-hdp-101.repo'] {'content': '[HDP-2.6-repo-101]\nname=HDP-2.6-repo-101\nbaseurl=http://98.45.213.139/HDP/centos7/2.6.4.0-91\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-2.6-GPL-repo-101]\nname=HDP-2.6-GPL-repo-101\nbaseurl=http://98.45.213.139/HDP-GPL/centos7/2.6.4.0-91\n\npath=/\nenabled=1\ngpgcheck=0'}
2018-02-26 14:38:51,397 - Writing File['/etc/yum.repos.d/ambari-hdp-101.repo'] because contents don't match
2018-02-26 14:38:51,398 - Repository['HDP-UTILS-1.1.0.22-repo-101'] {'append_to_file': True, 'base_url': 'http://98.45.213.139', 'action': ['create'], 'components': [u'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': 'ambari-hdp-101', 'mirror_list': None}
2018-02-26 14:38:51,403 - File['/etc/yum.repos.d/ambari-hdp-101.repo'] {'content': '[HDP-2.6-repo-101]\nname=HDP-2.6-repo-101\nbaseurl=http://98.45.213.139/HDP/centos7/2.6.4.0-91\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-2.6-GPL-repo-101]\nname=HDP-2.6-GPL-repo-101\nbaseurl=http://98.45.213.139/HDP-GPL/centos7/2.6.4.0-91\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-UTILS-1.1.0.22-repo-101]\nname=HDP-UTILS-1.1.0.22-repo-101\nbaseurl=http://98.45.213.139\n\npath=/\nenabled=1\ngpgcheck=0'}
2018-02-26 14:38:51,403 - Writing File['/etc/yum.repos.d/ambari-hdp-101.repo'] because contents don't match
2018-02-26 14:38:51,404 - Yum non-completed transactions check passed
2018-02-26 14:38:51,404 - call[('ambari-python-wrap', u'/usr/bin/hdp-select', 'versions')] {}
2018-02-26 14:38:51,491 - call returned (0, '2.6.0.3-8\n2.6.4.0-91')
2018-02-26 14:38:51,493 - Package['hdp-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5, 'use_repos': {u'HDP-2.6-repo-101': u'ambari-hdp-101', u'HDP-UTILS-1.1.0.22-repo-101': u'ambari-hdp-101', u'HDP-2.6-GPL-repo-101': u'ambari-hdp-101'}, 'action': ['upgrade']}
2018-02-26 14:38:51,494 - Installing package hdp-select ('/usr/bin/yum -d 0 -e 0 -y install '--disablerepo=*' --enablerepo=HDP-2.6-GPL-repo-101,HDP-2.6-repo-101,HDP-UTILS-1.1.0.22-repo-101 hdp-select')
2018-02-26 14:38:53,563 - Looking for matching packages in the following repositories: HDP-2.6-repo-101, HDP-2.6-GPL-repo-101, HDP-UTILS-1.1.0.22-repo-101
2018-02-26 14:39:01,302 - Adding fallback repositories: HDP-2.6-repo-53, HDP-2.6-GPL-repo-53
2018-02-26 14:39:06,264 - No package found for hadoop_${stack_version}(hadoop_(\d|_)+$)
Michael-Bronson
1 ACCEPTED SOLUTION

avatar
Master Mentor

@Michael Bronson

Looks like due to some reason at yum level the "hadoop_" packages of 2.6.4.0-91 was not installed properly.

You might want to try manually installing the "2.6.4.0-91" version of package on your own like following (please make sure that you are specifying the version in the below command as "2_6_4_0_91" )

# yum remove hadoop_2_6_4_0_91*   zookeeper_2_6_4_0_91*

.

Also please perform a yum clean all and check if there are any pending old transactions present on the host? If Yes, then please clear then as mentioned in : https://community.hortonworks.com/questions/175762/how-to-resolve-incomplete-yum-transactions-when-p...

.

After that you can try from ambari UI.

View solution in original post

1 REPLY 1

avatar
Master Mentor

@Michael Bronson

Looks like due to some reason at yum level the "hadoop_" packages of 2.6.4.0-91 was not installed properly.

You might want to try manually installing the "2.6.4.0-91" version of package on your own like following (please make sure that you are specifying the version in the below command as "2_6_4_0_91" )

# yum remove hadoop_2_6_4_0_91*   zookeeper_2_6_4_0_91*

.

Also please perform a yum clean all and check if there are any pending old transactions present on the host? If Yes, then please clear then as mentioned in : https://community.hortonworks.com/questions/175762/how-to-resolve-incomplete-yum-transactions-when-p...

.

After that you can try from ambari UI.