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 09-07-2016 08:57 AM
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
Created 09-07-2016 06:00 PM
@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'
Created 09-07-2016 10:07 AM
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
Created 09-07-2016 12:21 PM
can you manually execute the command on the failing host?
sudo yum install -y ambari-metrics-collector
Created 09-07-2016 06:00 PM
@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'
Created 09-08-2016 06:15 AM
Thanks everyone!