Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

ambari error

avatar
New Member

when i installing the HDP, I have issuse,some body can help me?

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_collector.py", line 133, in <module>
    AmsCollector().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_collector.py", line 34, in install
    self.install_packages(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 404, in install_packages
    Package(name)
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 158, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 121, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 49, 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 49, in install_package
    shell.checked_call(cmd, sudo=True, logoutput=self.get_logoutput())
  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 291, in _call
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of '/usr/bin/yum -d 0 -e 0 -y install ambari-metrics-collector' returned 1. Error: Nothing to do
1 ACCEPTED SOLUTION

avatar
Expert Contributor

@da li Can you please check the following:

1. cd to /etc/yum.repos.d/ and please paste the output of ls -ltr. - the issue could be because of conflicting repo.

2. Also please pate the output of HDP.repo

3. Run 'hdp-select' and paste the output here.

4. Run 'yum clean all' and then 'sudo yum install -y ambari-metrics-collector'

View solution in original post

4 REPLIES 4

avatar
Not applicable

When exactly are you getting this error ? (like while running any specific script command?)

If you already have the AMS installed on your host then after HDP upgrade you should also upgrade the "ambari-metrics-monitor", "ambari-metrics-hadoop-sink" and "ambari-metrics-collector" as well

https://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_upgrading_Ambari/content/_upgrade_ambari...

avatar
Master Mentor

can you manually execute the command on the failing host?

sudo yum install -y ambari-metrics-collector

avatar
Expert Contributor

@da li Can you please check the following:

1. cd to /etc/yum.repos.d/ and please paste the output of ls -ltr. - the issue could be because of conflicting repo.

2. Also please pate the output of HDP.repo

3. Run 'hdp-select' and paste the output here.

4. Run 'yum clean all' and then 'sudo yum install -y ambari-metrics-collector'

avatar
New Member

Thanks everyone!