stderr: 2018-08-23 17:31:44,446 - Command execution error: command = "/usr/bin/yum list available --showduplicates --disablerepo=* --enablerepo=HDF-3.2-repo-1", exit code = 1, stderr = One of the configured repositories failed (Unknown), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this: 1. Contact the upstream for the repository and get them to fix the problem. 2. Reconfigure the baseurl/etc. for the repository, to point to a working upstream. This is most often useful if you are using a newer distribution release than is supported by the repository (and the packages for the previous distribution release still work). 3. Run the command with the repository temporarily disabled yum --disablerepo= ... 4. Disable the repository permanently, so yum won't use it by default. Yum will then just ignore the repository until you permanently enable it again or use --enablerepo for temporary usage: yum-config-manager --disable or subscription-manager repos --disable= 5. Configure the failing repository to be skipped, if it is unavailable. Note that yum will try to contact the repo. when it runs most commands, so will have to try and fail each time (and thus. yum will be be much slower). If it is a very temporary problem though, this is often a nice compromise: yum-config-manager --save --setopt=.skip_if_unavailable=true Cannot find a valid baseurl for repo: HDF-3.2-repo-1 Command aborted. Reason: 'Server considered task failed and automatically aborted it' stdout: 2018-08-23 17:31:43,522 - Stack Feature Version Info: Cluster Stack=3.2, Command Stack=None, Command Version=None -> 3.2 2018-08-23 17:31:43,524 - Group['nifiregistry'] {} 2018-08-23 17:31:43,525 - Group['hadoop'] {} 2018-08-23 17:31:43,525 - Group['nifi'] {} 2018-08-23 17:31:43,526 - Group['knox'] {} 2018-08-23 17:31:43,526 - User['streamline'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-08-23 17:31:43,527 - User['logsearch'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-08-23 17:31:43,527 - User['registry'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-08-23 17:31:43,528 - User['storm'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-08-23 17:31:43,528 - User['infra-solr'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-08-23 17:31:43,529 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-08-23 17:31:43,530 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-08-23 17:31:43,530 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-08-23 17:31:43,531 - User['kafka'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-08-23 17:31:43,531 - User['nifiregistry'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['nifiregistry'], 'uid': None} 2018-08-23 17:31:43,532 - User['nifi'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['nifi'], 'uid': None} 2018-08-23 17:31:43,532 - User['knox'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop', 'knox'], 'uid': None} 2018-08-23 17:31:43,533 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555} 2018-08-23 17:31:43,534 - 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-08-23 17:31:43,547 - 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-08-23 17:31:43,569 - Repository['HDF-3.2-repo-1'] {'append_to_file': False, 'base_url': '', 'action': ['create'], 'components': [u'HDF', '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-hdf-1', 'mirror_list': None} 2018-08-23 17:31:43,579 - File['/etc/yum.repos.d/ambari-hdf-1.repo'] {'content': InlineTemplate(...)} 2018-08-23 17:31:43,580 - Writing File['/etc/yum.repos.d/ambari-hdf-1.repo'] because it doesn't exist 2018-08-23 17:31:43,580 - Repository['HDP-UTILS-1.1.0.22-repo-1'] {'append_to_file': True, 'base_url': '', '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-hdf-1', 'mirror_list': None} 2018-08-23 17:31:43,584 - File['/etc/yum.repos.d/ambari-hdf-1.repo'] {'content': '[HDF-3.2-repo-1]\nname=HDF-3.2-repo-1\nbaseurl=\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-UTILS-1.1.0.22-repo-1]\nname=HDP-UTILS-1.1.0.22-repo-1\nbaseurl=\n\npath=/\nenabled=1\ngpgcheck=0'} 2018-08-23 17:31:43,584 - Writing File['/etc/yum.repos.d/ambari-hdf-1.repo'] because contents don't match 2018-08-23 17:31:43,594 - Package['unzip'] {'retry_on_repo_unavailability': False, 'retry_count': 5} 2018-08-23 17:31:43,673 - Skipping installation of existing package unzip 2018-08-23 17:31:43,673 - Package['curl'] {'retry_on_repo_unavailability': False, 'retry_count': 5} 2018-08-23 17:31:43,679 - Skipping installation of existing package curl 2018-08-23 17:31:43,679 - Package['hdf-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5} 2018-08-23 17:31:43,686 - Skipping installation of existing package hdf-select 2018-08-23 17:31:43,765 - call[('ambari-python-wrap', u'/usr/bin/hdf-select', 'versions')] {} 2018-08-23 17:31:43,843 - call returned (1, 'Traceback (most recent call last):\n File "/usr/bin/hdf-select", line 405, in \n printVersions()\n File "/usr/bin/hdf-select", line 250, in printVersions\n for f in os.listdir(root):\nOSError: [Errno 2] No such file or directory: \'/usr/hdf\'') 2018-08-23 17:31:44,107 - Command repositories: HDF-3.2-repo-1, HDP-UTILS-1.1.0.22-repo-1 2018-08-23 17:31:44,108 - Applicable repositories: HDF-3.2-repo-1, HDP-UTILS-1.1.0.22-repo-1 2018-08-23 17:31:44,108 - Looking for matching packages in the following repositories: HDF-3.2-repo-1, HDP-UTILS-1.1.0.22-repo-1 2018-08-23 17:31:44,446 - Command execution error: command = "/usr/bin/yum list available --showduplicates --disablerepo=* --enablerepo=HDF-3.2-repo-1", exit code = 1, stderr = One of the configured repositories failed (Unknown), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this: 1. Contact the upstream for the repository and get them to fix the problem. 2. Reconfigure the baseurl/etc. for the repository, to point to a working upstream. This is most often useful if you are using a newer distribution release than is supported by the repository (and the packages for the previous distribution release still work). 3. Run the command with the repository temporarily disabled yum --disablerepo= ... 4. Disable the repository permanently, so yum won't use it by default. Yum will then just ignore the repository until you permanently enable it again or use --enablerepo for temporary usage: yum-config-manager --disable or subscription-manager repos --disable= 5. Configure the failing repository to be skipped, if it is unavailable. Note that yum will try to contact the repo. when it runs most commands, so will have to try and fail each time (and thus. yum will be be much slower). If it is a very temporary problem though, this is often a nice compromise: yum-config-manager --save --setopt=.skip_if_unavailable=true Cannot find a valid baseurl for repo: HDF-3.2-repo-1 Command aborted. Reason: 'Server considered task failed and automatically aborted it' Command failed after 1 tries