Created 06-03-2019 05:36 PM
I am using CentOS7 with Ambari 2.4. Below is the error... I tried to install python-devel but not working. Ambari installed on Master but failed on 4 data nodes at this location. Any help?
stderr: /var/lib/ambari-agent/data/errors-3188.txt
Traceback (most recent call last): File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py", line 58, in <module> AmsMonitor().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_monitor.py", line 28, in install self.install_packages(env, exclude_packages = ['ambari-metrics-collector']) 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-monitor' returned 1. Error: Package: ambari-metrics-monitor-2.4.0.1-1.x86_64 (Updates-ambari-2.4.0.1) Requires: python-devel You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
stdout: /var/lib/ambari-agent/data/output-3188.txt
2019-06-03 12:30:45,327 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.4.0.0-169 2019-06-03 12:30:45,328 - Checking if need to create versioned conf dir /etc/hadoop/2.4.0.0-169/0 2019-06-03 12:30:45,328 - call['conf-select create-conf-dir --package hadoop --stack-version 2.4.0.0-169 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1} 2019-06-03 12:30:45,356 - call returned (1, '/etc/hadoop/2.4.0.0-169/0 exist already', '') 2019-06-03 12:30:45,357 - checked_call['conf-select set-conf-dir --package hadoop --stack-version 2.4.0.0-169 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False} 2019-06-03 12:30:45,384 - checked_call returned (0, '/usr/hdp/2.4.0.0-169/hadoop/conf -> /etc/hadoop/2.4.0.0-169/0') 2019-06-03 12:30:45,384 - Ensuring that hadoop has the correct symlink structure 2019-06-03 12:30:45,384 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf 2019-06-03 12:30:45,386 - Group['hadoop'] {} 2019-06-03 12:30:45,388 - Group['users'] {} 2019-06-03 12:30:45,389 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']} 2019-06-03 12:30:45,391 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']} 2019-06-03 12:30:45,392 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users']} 2019-06-03 12:30:45,392 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']} 2019-06-03 12:30:45,393 - User['yarn'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']} 2019-06-03 12:30:45,394 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']} 2019-06-03 12:30:45,395 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555} 2019-06-03 12:30:45,397 - 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)'} 2019-06-03 12:30:45,404 - 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 2019-06-03 12:30:45,405 - Group['hdfs'] {} 2019-06-03 12:30:45,406 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': [u'hadoop', u'hdfs']} 2019-06-03 12:30:45,406 - Directory['/etc/hadoop'] {'mode': 0755} 2019-06-03 12:30:45,420 - File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'} 2019-06-03 12:30:45,420 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 0777} 2019-06-03 12:30:45,435 - Repository['HDP-2.4'] {'base_url': 'http://192.168.1.115/hortonwork-2.4.0/HDP/centos7/2.x/updates/2.4.0.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': 'HDP', 'mirror_list': None} 2019-06-03 12:30:45,442 - File['/etc/yum.repos.d/HDP.repo'] {'content': '[HDP-2.4]\nname=HDP-2.4\nbaseurl=http://192.168.1.115/hortonwork-2.4.0/HDP/centos7/2.x/updates/2.4.0.0\n\npath=/\nenabled=1\ngpgcheck=0'} 2019-06-03 12:30:45,443 - Repository['HDP-UTILS-1.1.0.20'] {'base_url': 'http://192.168.1.115/hortonwork-2.4.0/HDP-UTILS-1.1.0.20/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': 'HDP-UTILS', 'mirror_list': None} 2019-06-03 12:30:45,446 - File['/etc/yum.repos.d/HDP-UTILS.repo'] {'content': '[HDP-UTILS-1.1.0.20]\nname=HDP-UTILS-1.1.0.20\nbaseurl=http://192.168.1.115/hortonwork-2.4.0/HDP-UTILS-1.1.0.20/repos/centos7\n\npath=/\nenabled=1\ngpgcheck=0'} 2019-06-03 12:30:45,447 - Package['unzip'] {} 2019-06-03 12:30:45,667 - Skipping installation of existing package unzip 2019-06-03 12:30:45,667 - Package['curl'] {} 2019-06-03 12:30:45,806 - Skipping installation of existing package curl 2019-06-03 12:30:45,807 - Package['hdp-select'] {} 2019-06-03 12:30:45,977 - Skipping installation of existing package hdp-select 2019-06-03 12:30:46,244 - Package['ambari-metrics-monitor'] {} 2019-06-03 12:30:46,475 - Installing package ambari-metrics-monitor ('/usr/bin/yum -d 0 -e 0 -y install ambari-metrics-monitor')
Created 06-03-2019 10:38 PM
Metrics monitor is a python based utility.
python-devel is one of the dependency of metrics-monitor process. As it has the build some utilities like psutils ...etc.
# yum deplist ambari-metrics-monitor . . dependency: python-devel
The "python-devel" package should come from your Operating System repository. So pleas emake sure that your OS has the base repo availability.
# yum install python-devel -y
Also looks like you are using too old ambari version 2.4.0 , better to see if you can upgrade it to later versions (as latest ambari version is 2.7.3)
Created 06-13-2019 03:02 AM
@Srikanth Vakalapudi
Did that answer your query? If yes, then please mark this thread as answered by clicking on the "Accept" button .. If you have any additional query then please post back.