Support Questions
Find answers, ask questions, and share your expertise

failed to install HDF ? need help !!!!!!!!

failed to install HDF ? need help !!!!!!!!

Expert Contributor
stderr: /var/lib/ambari-agent/data/errors-13.txt
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_collector.py", line 148, in <module>
    AmsCollector().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_collector.py", line 36, in install
    self.install_packages(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 567, 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 54, in action_install
    self.install_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 51, 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 86, 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 98, in _call_with_retries
    code, out = func(cmd, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call
    tries=tries, try_sleep=try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 293, in _call
    raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/bin/yum -d 0 -e 0 -y install ambari-metrics-collector' returned 1. Error: Nothing to do
stdout: /var/lib/ambari-agent/data/output-13.txt
2017-02-28 14:48:42,696 - Group['hadoop'] {}
2017-02-28 14:48:42,697 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-02-28 14:48:42,698 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-02-28 14:48:42,698 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['users']}
2017-02-28 14:48:42,699 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2017-02-28 14:48:42,700 - 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'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2017-02-28 14:48:42,702 - 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'] due to not_if
2017-02-28 14:48:42,715 - Initializing 2 repositories
2017-02-28 14:48:42,715 - Repository['HDF-2.0'] {'base_url': 'http://public-repo-1.hortonworks.com/HDF/centos6/2.x/updates/2.0.0.0', 'action': ['create'], 'components': ['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': 'HDF', 'mirror_list': None}
2017-02-28 14:48:42,720 - File['/etc/yum.repos.d/HDF.repo'] {'content': '[HDF-2.0]\nname=HDF-2.0\nbaseurl=http://public-repo-1.hortonworks.com/HDF/centos6/2.x/updates/2.0.0.0\n\npath=/\nenabled=1\ngpgcheck=0'}
2017-02-28 14:48:42,720 - Repository['HDP-UTILS-1.1.0.21'] {'base_url': 'http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/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-UTILS', 'mirror_list': None}
2017-02-28 14:48:42,722 - File['/etc/yum.repos.d/HDP-UTILS.repo'] {'content': '[HDP-UTILS-1.1.0.21]\nname=HDP-UTILS-1.1.0.21\nbaseurl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos6\n\npath=/\nenabled=1\ngpgcheck=0'}
2017-02-28 14:48:42,722 - Package['unzip'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2017-02-28 14:48:42,918 - Skipping installation of existing package unzip
2017-02-28 14:48:42,918 - Package['curl'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2017-02-28 14:48:42,932 - Skipping installation of existing package curl
2017-02-28 14:48:42,932 - Package['hdf-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2017-02-28 14:48:42,946 - Skipping installation of existing package hdf-select
2017-02-28 14:48:43,068 - Using hadoop conf dir: /usr/hdf/current/hadoop-client/conf
2017-02-28 14:48:43,070 - checked_call['hostid'] {}
2017-02-28 14:48:43,073 - checked_call returned (0, 'a8c04701')
2017-02-28 14:48:43,075 - Package['ambari-metrics-collector'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2017-02-28 14:48:43,129 - Installing package ambari-metrics-collector ('/usr/bin/yum -d 0 -e 0 -y install ambari-metrics-collector')
2017-02-28 14:48:45,584 - Execution of '/usr/bin/yum -d 0 -e 0 -y install ambari-metrics-collector' returned 1. Error: Nothing to do
2017-02-28 14:48:45,584 - Failed to install package ambari-metrics-collector. Executing '/usr/bin/yum clean metadata'
2017-02-28 14:48:45,720 - Retrying to install package ambari-metrics-collector after 30 seconds

Command failed after 1 tries
3 REPLIES 3

Re: failed to install HDF ? need help !!!!!!!!

@Mourad Chahri

Can you please run manually below commands as Ambari User on that particular machine and share the output.

1. yum clean all

2. yum -d 0 -e 0 -v -y install ambari-metrics-collector

Re: failed to install HDF ? need help !!!!!!!!

Expert Contributor

@SBandaru

[root@node3 .ssh]# yum clean all Loaded plugins: fastestmirror, nvidia, priorities, security Cleaning repos: HDF-2.0 HDP-UTILS-1.1.0.21 adobe-linux-x86_64 base elrepo epel extras google-chrome google64 updates virtualbox Cleaning up Everything Cleaning up list of fastest mirrors

[root@node3 .ssh]# yum -d 0 -e 0 -v -y install ambari-metrics-collector Loading "fastestmirror" plugin Loading "nvidia" plugin Loading "priorities" plugin Not loading "refresh-packagekit" plugin, as it is disabled Loading "security" plugin Config time: 0.022 [nvidia]: device found: pci:v000010DEd00000FF3sv000010DEsd00001162bc03sc00i00 Yum Version: 3.2.29 rpmdb time: 0.000 Setting up Install Process Setting up Package Sacks Loading mirror speeds from cached hostfile * base: mirrors.coreix.net * elrepo: ftp.icm.edu.pl * epel: ftp.icm.edu.pl * extras: mirrors.coreix.net * updates: mirrors.coreix.net Searching 12 packages searching package kmod-nvidia-375.26-1.el6.elrepo.x86_64 searching in provides entries searching package nvidia-x11-drv-375.39-1.el6.elrepo.x86_64 searching in provides entries searching package kmod-nvidia-375.20-1.el6.elrepo.x86_64 searching in provides entries searching package nvidia-x11-drv-367.57-1.el6.elrepo.x86_64 searching in provides entries searching package kmod-nvidia-375.39-1.el6.elrepo.x86_64 searching in provides entries searching package kmod-nvidia-367.57-1.el6.elrepo.x86_64 searching in provides entries searching package nvidia-x11-drv-32bit-367.57-1.el6.elrepo.x86_64 searching in provides entries searching package nvidia-x11-drv-32bit-375.39-1.el6.elrepo.x86_64 searching in provides entries searching package nvidia-x11-drv-32bit-375.20-1.el6.elrepo.x86_64 searching in provides entries searching package nvidia-x11-drv-32bit-375.26-1.el6.elrepo.x86_64 searching in provides entries searching package nvidia-x11-drv-375.26-1.el6.elrepo.x86_64 searching in provides entries searching package nvidia-x11-drv-375.20-1.el6.elrepo.x86_64 searching in provides entries pkgsack time: 2.462 Checking for virtual provide or file-provide for ambari-metrics-collector No package ambari-metrics-collector available. Error: Nothing to do

Re: failed to install HDF ? need help !!!!!!!!

@Mourad Chahri

Are you trying to install HDF on a node that already has HDP installed?