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 on
02-08-2018
10:53 PM
- last edited on
06-18-2021
05:21 AM
by
cjervis
Hi people,
Can someone help me with this issues ? We are installing HDP 2.6 and 1 of our cluster servers is failing.
The error message is :
Failed to execute command: rpm -qa | grep smartsense- || yum -y install smartsense-hst || rpm -i /var/lib/ambari-agent/cache/stacks/HDP/2.1/services/SMARTSENSE/package/files/rpm/*.rpm; Exit code: 1; stdout: Loaded plugins: product-id, rhnplugin, search-disabled-repos, subscription-
: manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
Resolving Dependencies
--> Running transaction check
---> Package smartsense-hst.x86_64 0:1.4.4.2.6.1.0-143 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
smartsense-hst x86_64 1.4.4.2.6.1.0-143 ambari-2.6.1.0 284 M
Transaction Summary
================================================================================
Install 1 Package
Total download size: 284 M
Installed size: 295 M
Downloading packages:
; stderr: http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.1.0/smartsense/smartsense-hst-1.... [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=ambari-2.6.1.0 clean metadata
Trying other mirror.
Error downloading packages:
smartsense-hst-1.4.4.2.6.1.0-143.x86_64: [Errno 256] No more mirrors to try.
error: File not found by glob: /var/lib/ambari-agent/cache/stacks/HDP/2.1/services/SMARTSENSE/package/files/rpm/*.rpm
stdout: /var/lib/ambari-agent/data/output-586.txt
2018-02-09 09:49:24,353 - Stack Feature Version Info: Cluster Stack=2.6, Command Stack=None, Command Version=None -> 2.6
2018-02-09 09:49:24,358 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2018-02-09 09:49:24,359 - Group['hdfs'] {}
2018-02-09 09:49:24,360 - Group['hadoop'] {}
2018-02-09 09:49:24,360 - Group['users'] {}
2018-02-09 09:49:24,361 - User['hive'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-02-09 09:49:24,364 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-02-09 09:49:24,366 - User['infra-solr'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-02-09 09:49:24,368 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-02-09 09:49:24,370 - User['tez'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users'], 'uid': None}
2018-02-09 09:49:24,372 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users'], 'uid': None}
2018-02-09 09:49:24,374 - User['kafka'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-02-09 09:49:24,374 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hdfs'], 'uid': None}
2018-02-09 09:49:24,375 - User['sqoop'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-02-09 09:49:24,376 - User['yarn'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-02-09 09:49:24,377 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-02-09 09:49:24,378 - User['hbase'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-02-09 09:49:24,379 - User['hcat'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-02-09 09:49:24,380 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2018-02-09 09:49:24,382 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa 0'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2018-02-09 09:49:24,390 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa 0'] due to not_if
2018-02-09 09:49:24,390 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'create_parents': True, 'mode': 0775, 'cd_access': 'a'}
2018-02-09 09:49:24,391 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2018-02-09 09:49:24,393 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2018-02-09 09:49:24,394 - call['/var/lib/ambari-agent/tmp/changeUid.sh hbase'] {}
2018-02-09 09:49:24,407 - call returned (0, '1020')
2018-02-09 09:49:24,408 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1020'] {'not_if': '(test $(id -u hbase) -gt 1000) || (false)'}
2018-02-09 09:49:24,416 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1020'] due to not_if
2018-02-09 09:49:24,417 - Group['hdfs'] {}
2018-02-09 09:49:24,418 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': ['hdfs', u'hdfs']}
2018-02-09 09:49:24,419 - FS Type:
2018-02-09 09:49:24,419 - Directory['/etc/hadoop'] {'mode': 0755}
2018-02-09 09:49:24,436 - File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
2018-02-09 09:49:24,437 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777}
2018-02-09 09:49:24,453 - Repository['HDP-2.6-repo-5'] {'append_to_file': False, 'base_url': 'http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0', '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-5', 'mirror_list': None}
2018-02-09 09:49:24,465 - File['/etc/yum.repos.d/ambari-hdp-5.repo'] {'content': '[HDP-2.6-repo-5]\nname=HDP-2.6-repo-5\nbaseurl=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0\n\npath=/\nenabled=1\ngpgcheck=0'}
2018-02-09 09:49:24,466 - Writing File['/etc/yum.repos.d/ambari-hdp-5.repo'] because contents don't match
2018-02-09 09:49:24,466 - Repository['HDP-2.6-GPL-repo-5'] {'append_to_file': True, 'base_url': 'http://public-repo-1.hortonworks.com/HDP-GPL/centos7/2.x/updates/2.6.4.0', '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-5', 'mirror_list': None}
2018-02-09 09:49:24,469 - File['/etc/yum.repos.d/ambari-hdp-5.repo'] {'content': '[HDP-2.6-repo-5]\nname=HDP-2.6-repo-5\nbaseurl=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-2.6-GPL-repo-5]\nname=HDP-2.6-GPL-repo-5\nbaseurl=http://public-repo-1.hortonworks.com/HDP-GPL/centos7/2.x/updates/2.6.4.0\n\npath=/\nenabled=1\ngpgcheck=0'}
2018-02-09 09:49:24,470 - Writing File['/etc/yum.repos.d/ambari-hdp-5.repo'] because contents don't match
2018-02-09 09:49:24,470 - Repository['HDP-UTILS-1.1.0.22-repo-5'] {'append_to_file': True, 'base_url': 'http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7', '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-5', 'mirror_list': None}
2018-02-09 09:49:24,473 - File['/etc/yum.repos.d/ambari-hdp-5.repo'] {'content': '[HDP-2.6-repo-5]\nname=HDP-2.6-repo-5\nbaseurl=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-2.6-GPL-repo-5]\nname=HDP-2.6-GPL-repo-5\nbaseurl=http://public-repo-1.hortonworks.com/HDP-GPL/centos7/2.x/updates/2.6.4.0\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-UTILS-1.1.0.22-repo-5]\nname=HDP-UTILS-1.1.0.22-repo-5\nbaseurl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7\n\npath=/\nenabled=1\ngpgcheck=0'}
2018-02-09 09:49:24,474 - Writing File['/etc/yum.repos.d/ambari-hdp-5.repo'] because contents don't match
2018-02-09 09:49:24,474 - Package['unzip'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2018-02-09 09:49:25,475 - Skipping installation of existing package unzip
2018-02-09 09:49:25,476 - Package['curl'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2018-02-09 09:49:25,497 - Skipping installation of existing package curl
2018-02-09 09:49:25,497 - Package['hdp-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2018-02-09 09:49:25,518 - Skipping installation of existing package hdp-select
2018-02-09 09:49:25,523 - The repository with version 2.6.4.0-91 for this command has been marked as resolved. It will be used to report the version of the component which was installed
2018-02-09 09:49:25,529 - Skipping stack-select on SMARTSENSE because it does not exist in the stack-select package structure.
thisUser:root.
configuredUserName:root.
returning userMap:
installing using command: {sudo} rpm -qa | grep smartsense- || {sudo} yum -y install smartsense-hst || {sudo} rpm -i /var/lib/ambari-agent/cache/stacks/HDP/2.1/services/SMARTSENSE/package/files/rpm/*.rpm
Command: rpm -qa | grep smartsense- || yum -y install smartsense-hst || rpm -i /var/lib/ambari-agent/cache/stacks/HDP/2.1/services/SMARTSENSE/package/files/rpm/*.rpm
Exit code: 1
Std Out: Loaded plugins: product-id, rhnplugin, search-disabled-repos, subscription-
: manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
Resolving Dependencies
--> Running transaction check
---> Package smartsense-hst.x86_64 0:1.4.4.2.6.1.0-143 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
smartsense-hst x86_64 1.4.4.2.6.1.0-143 ambari-2.6.1.0 284 M
Transaction Summary
================================================================================
Install 1 Package
Total download size: 284 M
Installed size: 295 M
Downloading packages:
Std Err: http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.1.0/smartsense/smartsense-hst-1.... [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=ambari-2.6.1.0 clean metadata
Trying other mirror.
Error downloading packages:
smartsense-hst-1.4.4.2.6.1.0-143.x86_64: [Errno 256] No more mirrors to try.
error: File not found by glob: /var/lib/ambari-agent/cache/stacks/HDP/2.1/services/SMARTSENSE/package/files/rpm/*.rpm
2018-02-09 09:49:35,454 - The repository with version 2.6.4.0-91 for this command has been marked as resolved. It will be used to report the version of the component which was installed
2018-02-09 09:49:35,459 - Skipping stack-select on SMARTSENSE because it does not exist in the stack-select package structure.
Command failed after 1 tries
When I run the script manuall on the server I got this error message:
smartsense-hst-1.4.4.2.6.1.0-1 FAILED http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.1.0/smartsense/smartsense-hst-1.... [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=ambari-2.6.1.0 clean metadata Trying other mirror. Error downloading packages: smartsense-hst-1.4.4.2.6.1.0-143.x86_64: [Errno 256] No more mirrors to try. error: File not found by glob: /var/lib/ambari-agent/cache/stacks/HDP/2.1/services/SMARTSENSE/package/files/rpm/*.rpm
Created 02-11-2018 11:39 PM
I re-run it today and everything works..
Created 02-11-2018 11:39 PM
I re-run it today and everything works..
Created 06-17-2021 09:17 PM
nice