Created 03-25-2017 01:25 PM
I have 6 AWS Ec2-Instances (3 Masters / 3 Slaves).
1 has Public IP (My Main Server) and 5 have EIP.
(I added EIPs on other servers in order to try and resolve the issue, assuming that some of the libraries might need to be downloaded from net.)
I downloaded repos onto my Main Sever , changed the BASE URL for ambari.repo and HDP.repo and then pushed these to other servers. I updated the same local URL details in the AMBARI UI -> CLUSTER INSTALL WIZARD. Issue came up when i tried to install Metrics Collector and Zookeeper on to the EC2 nodes.
Repo information:
[ec2-user@ip-172-31-7-74 ~]$ sudo yum repolistLoaded plugins: amazon-id, rhui-lb, security Repository Updates-ambari-2.1.0 is listed more than once in the configuration Repository HDP-UTILS-1.1.0.20 is listed more than once in the configuration Repository HDP-2.3.0.0 is listed more than once in the configuration Repository HDP-UTILS-1.1.0.20 is listed more than once in the configuration HDP-UTILS-1.1.0.20 | 2.9 kB 00:00 repo id repo name status HDP-2.3 HDP-2.3 175 HDP-2.3.0.0 HDP Version - HDP-2.3.0.0 175 HDP-UTILS-1.1.0.20 HDP-UTILS-1.1.0.20 43 Updates-ambari-2.1.0 ambari-2.1.0 - Updates 8 rhui-REGION-client-config-server-6 Red Hat Update Infrastructure 2.0 Client Configuration Server 6 6 rhui-REGION-rhel-server-releases Red Hat Enterprise Linux Server 6 (RPMs) 19,417 rhui-REGION-rhel-server-releases-optional Red Hat Enterprise Linux Server 6 Optional (RPMs) 11,057 rhui-REGION-rhel-server-rh-common Red Hat Enterprise Linux Server 6 RH Common (RPMs) 129 repolist: 31,010I executed the command from the error , on my main EC2 instance , Master01
--I tried to run the command that was erroring , from the log [ec2-user@ip-172-31-7-74 ~]$ sudo yum -d 0 -e 0 -y install ambari-metrics-monitor ERROR with rpm_check_debug vs depsolve:libkadm5clnt_mit.so.8()(64bit) is needed by krb5-workstation-1.10.3-65.el6.x86_64 libkadm5clnt_mit.so.8(kadm5clnt_mit_8_MIT)(64bit) is needed by krb5-workstation-1.10.3-65.el6.x86_64 libkadm5srv_mit.so.8()(64bit) is needed by krb5-workstation-1.10.3-65.el6.x86_64 libkadm5srv_mit.so.8(kadm5srv_mit_8_MIT)(64bit) is needed by krb5-workstation-1.10.3-65.el6.x86_64 You could try running: rpm -Va --nofiles --nodigestYour transaction was saved, rerun it with: yum load-transaction /tmp/yum_save_tx-2017-03-25-07-01vjZxht.yumtx
Content of repo directory on my Main Master
[ec2-user@ip-172-31-7-74 ~]$ ls -l /etc/yum.repos.d/ total 44 -rw-r--r--. 1 root root 280 Mar 20 06:35 ambari_bkp.repo -rw-r--r-- 1 ec2-user ec2-user 317 Mar 25 06:27 ambari.repo -rw-r--r--. 1 root root 576 Mar 20 06:36 hdp_bkp.repo -rw-r--r--. 1 root root 660 Mar 20 07:20 hdp.repo -rw-r--r-- 1 root root 157 Mar 25 06:30 HDP.repo -rw-r--r-- 1 root root 180 Mar 25 02:11 HDP-UTILS.repo -rw-r--r-- 1 root root 606 Mar 24 23:27 redhat-rhui-client-config.repo -rw-r--r--. 1 root root 6300 Mar 24 23:27 redhat-rhui.repo -rw-r--r--. 1 root root 529 Oct 30 2013 rhel-source.repo -rw-r--r-- 1 root root 90 Mar 24 23:27 rhui-load-balancers.conf
Content of ambari.repo and HDP.repo on my Main Master
[ec2-user@ip-172-31-7-74 ~]$ cat /etc/yum.repos.d/ambari.repo
#VERSION_NUMBER=2.1.0-1470 [Updates-ambari-2.1.0] name=ambari-2.1.0 - Updates baseurl=http://ip-172-31-7-74.ap-southeast-2.compute.internal/yum/ambari-2.1.0/centos6/ gpgcheck=1 gpgkey=http://ip-172-31-7-74.ap-southeast-2.compute.internal/yum/ambari-2.1.0/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins enabled=1 priority=1 [ec2-user@ip-172-31-7-74 ~]$ cat /etc/yum.repos.d/HDP.repo [HDP-2.3] name=HDP-2.3 baseurl=http://PublicIP/yum/HDP/centos6/2.x/updates/2.3.0.0 path=/ enabled=1 gpgcheck=0 [ec2-user@ip-172-31-7-74 ~]$ cat /etc/yum.repos.d/hdp.repo #VERSION_NUMBER=2.3.0.0-2557 [HDP-2.3.0.0] name=HDP Version - HDP-2.3.0.0 baseurl=http://ip-172-31-7-74.ap-southeast-2.compute.internal/yum/HDP/centos6/2.x/updates/2.3.0.0 gpgcheck=1 gpgkey=http://ip-172-31-7-74.ap-southeast-2.compute.internal/yum/HDP/centos6/2.x/updates/2.3.0.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins enabled=1 priority=1 [HDP-UTILS-1.1.0.20] name=HDP Utils Version - HDP-UTILS-1.1.0.20 baseurl=http://ip-172-31-7-74.ap-southeast-2.compute.internal/yum/HDP-UTILS-1.1.0.20/repos/centos6 gpgcheck=1 gpgkey=http://ip-172-31-7-74.ap-southeast-2.compute.internal/yum/HDP/centos6/2.x/updates/2.3.0.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins enabled=1 priority=1
The repos have been copied over to other master and slaves, a view of the contents on those EC2:
[ec2-user@ip-172-31-5-78 ~]$ ls -l /etc/yum.repos.d/ total 36 -rw-r--r-- 1 ec2-user ec2-user 317 Mar 25 06:27 ambari.repo -rw-r--r--. 1 ec2-user ec2-user 660 Mar 20 07:41 hdp.repo -rw-r--r-- 1 root root 157 Mar 25 06:30 HDP.repo -rw-r--r-- 1 root root 180 Mar 25 02:11 HDP-UTILS.repo -rw-r--r-- 1 root root 606 Mar 20 04:59 redhat-rhui-client-config.repo -rw-r--r-- 1 root root 6300 Mar 20 04:59 redhat-rhui.repo -rw-r--r-- 1 root root 529 Oct 30 2013 rhel-source.repo -rw-r--r--. 1 root root 90 Mar 20 04:59 rhui-load-balancers.conf [ec2-user@ip-172-31-5-78 ~]$ cat /etc/yum.repos.d/ambari.repo #VERSION_NUMBER=2.1.0-1470 [Updates-ambari-2.1.0] name=ambari-2.1.0 - Updates baseurl=http://ip-172-31-7-74.southeast.compute.internal/yum/ambari-2.1.0/centos6/ gpgcheck=1 gpgkey=http://ip-172-31-7-74.ap-southeast-2.compute.internal/yum/ambari-2.1.0/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins enabled=1 priority=1 [ec2-user@ip-172-31-5-78 ~]$ cat /etc/yum.repos.d/hdp.repo #VERSION_NUMBER=2.3.0.0-2557 [HDP-2.3.0.0] name=HDP Version - HDP-2.3.0.0 baseurl=http://ip-172-31-7-74.ap-southeast-2.compute.internal/yum/HDP/centos6/2.x/updates/2.3.0.0 gpgcheck=1 gpgkey=http://ip-172-31-7-74.ap-southeast-2.compute.internal/yum/HDP/centos6/2.x/updates/2.3.0.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins enabled=1 priority=1 [HDP-UTILS-1.1.0.20] name=HDP Utils Version - HDP-UTILS-1.1.0.20 baseurl=http://ip-172-31-7-74.ap-southeast-2.compute.internal/yum/HDP-UTILS-1.1.0.20/repos/centos6 gpgcheck=1 gpgkey=http://ip-172-31-7-74.ap-southeast-2.compute.internal/yum/HDP/centos6/2.x/updates/2.3.0.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins enabled=1 priority=1
I get the following ambari-metrics-collector information from my main server.
[ec2-user@ip-172-31-7-74 ~]$ rpm -qa | grep ambari-metrics ambari-metrics-collector-2.1.0-1470.x86_64
I could not really find anything specific on net: https://www.rpmfind.net/linux/rpm2html/search.php?query=libkadm5clnt_mit.so.8()(64bit) https://rhn.redhat.com/errata/RHBA-2017-0643.html
Any information on how to proceed will be helpfull.
Errors: -------------------------------------------------------------------- /var/lib/ambari-agent/data/errors-107.txt -------------------------------------------------------------------- Repository Updates-ambari-2.1.0 is listed more than once in the configuration Repository HDP-UTILS-1.1.0.20 is listed more than once in the configuration Repository HDP-2.3.0.0 is listed more than once in the configuration Repository HDP-UTILS-1.1.0.20 is listed more than once in the configuration Repository Updates-ambari-2.1.0 is listed more than once in the configuration Repository HDP-UTILS-1.1.0.20 is listed more than once in the configuration Repository HDP-2.3.0.0 is listed more than once in the configuration Repository HDP-UTILS-1.1.0.20 is listed more than once in the configuration Repository Updates-ambari-2.1.0 is listed more than once in the configuration Repository HDP-UTILS-1.1.0.20 is listed more than once in the configuration Repository HDP-2.3.0.0 is listed more than once in the configuration Repository HDP-UTILS-1.1.0.20 is listed more than once in the configuration Repository Updates-ambari-2.1.0 is listed more than once in the configuration Repository HDP-UTILS-1.1.0.20 is listed more than once in the configuration Repository HDP-2.3.0.0 is listed more than once in the configuration Repository HDP-UTILS-1.1.0.20 is listed more than once in the configuration 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 AmsMonitor().execute() File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 218, 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 376, in install_packages Package(name) File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 157, in init self.env.run() File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run self.run_action(resource, action) File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action provider_action() File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 45, 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 callwrapper result = call(command, **kwargscopy) 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 with rpm_check_debug vs depsolve: libkadm5clnt_mit.so.8()(64bit) is needed by krb5-workstation-1.10.3-65.el6.x86_64 libkadm5clnt_mit.so.8(kadm5clnt_mit_8_MIT)(64bit) is needed by krb5-workstation-1.10.3-65.el6.x86_64 libkadm5srv_mit.so.8()(64bit) is needed by krb5-workstation-1.10.3-65.el6.x86_64 libkadm5srv_mit.so.8(kadm5srv_mit_8_MIT)(64bit) is needed by krb5-workstation-1.10.3-65.el6.x86_64 You could try running: rpm -Va --nofiles --nodigest Your transaction was saved, rerun it with: yum load-transaction /tmp/yum_save_tx-2017-03-25-06-305zHb5j.yumtx
-------------------------------------------------------------------- /var/lib/ambari-agent/data/output-107.txt --------------------------------------------------------------------
2017-03-25 06:30:20,223 - Directory['/var/lib/ambari-agent/data/tmp/AMBARI-artifacts/'] {'recursive': True} 2017-03-25 06:30:20,225 - File['/var/lib/ambari-agent/data/tmp/AMBARI-artifacts//jce_policy-8.zip'] {'content': DownloadSource('http://ip-172-31-7-74.ap-southeast-2.compute.internal:8080/resources//jce_policy-8.zip')} 2017-03-25 06:30:20,225 - Not downloading the file from http://ip-172-31-7-74.ap-southeast-2.compute.internal:8080/resources//jce_policy-8.zip, because /var/lib/ambari-agent/data/tmp/jce_policy-8.zip already exists 2017-03-25 06:30:20,226 - Group['hadoop'] {'ignore_failures': False} 2017-03-25 06:30:20,226 - User['zookeeper'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': ['hadoop']} 2017-03-25 06:30:20,227 - User['ams'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': ['hadoop']} 2017-03-25 06:30:20,228 - User['ambari-qa'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': ['users']} 2017-03-25 06:30:20,228 - File['/var/lib/ambari-agent/data/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555} 2017-03-25 06:30:20,229 - Execute['/var/lib/ambari-agent/data/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-03-25 06:30:20,240 - Skipping Execute['/var/lib/ambari-agent/data/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-03-25 06:30:20,256 - Repository['HDP-2.3'] {'base_url': 'http://PublicIP/yum/HDP/centos6/2.x/updates/2.3.0.0', 'action': ['create'], 'components': ['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} 2017-03-25 06:30:20,265 - File['/etc/yum.repos.d/HDP.repo'] {'content': InlineTemplate(...)} 2017-03-25 06:30:20,266 - Writing File['/etc/yum.repos.d/HDP.repo'] because it doesn't exist 2017-03-25 06:30:20,266 - Repository['HDP-UTILS-1.1.0.20'] {'base_url': 'http://PublicIP/yum/HDP-UTILS-1.1.0.20/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-03-25 06:30:20,269 - File['/etc/yum.repos.d/HDP-UTILS.repo'] {'content': InlineTemplate(...)} 2017-03-25 06:30:20,269 - Package['unzip'] {} 2017-03-25 06:30:20,365 - Skipping installation of existing package unzip 2017-03-25 06:30:20,366 - Package['curl'] {} 2017-03-25 06:30:20,408 - Skipping installation of existing package curl 2017-03-25 06:30:20,408 - Package['hdp-select'] {} 2017-03-25 06:30:20,450 - Installing package hdp-select ('/usr/bin/yum -d 0 -e 0 -y install hdp-select') 2017-03-25 06:30:22,167 - Directory['/var/lib/ambari-agent/data/tmp/AMBARI-artifacts/'] {'recursive': True} 2017-03-25 06:30:22,168 - File['/var/lib/ambari-agent/data/tmp/jdk-8u40-linux-x64.tar.gz'] {'content': DownloadSource('http://ip-172-31-7-74.ap-southeast-2.compute.internal:8080/resources//jdk-8u40-linux-x64.tar.gz'), 'not_if': 'test -f /var/lib/ambari-agent/data/tmp/jdk-8u40-linux-x64.tar.gz'} 2017-03-25 06:30:22,178 - Skipping File['/var/lib/ambari-agent/data/tmp/jdk-8u40-linux-x64.tar.gz'] due to not_if 2017-03-25 06:30:22,179 - Directory['/usr/jdk64'] {} 2017-03-25 06:30:22,180 - Execute['('chmod', 'a+x', '/usr/jdk64')'] {'not_if': 'test -e /usr/jdk64/jdk1.8.0_40/bin/java', 'sudo': True} 2017-03-25 06:30:22,189 - Skipping Execute['('chmod', 'a+x', '/usr/jdk64')'] due to not_if 2017-03-25 06:30:22,190 - Execute['mkdir -p /var/lib/ambari-agent/data/tmp/jdk && cd /var/lib/ambari-agent/data/tmp/jdk && tar -xf /var/lib/ambari-agent/data/tmp/jdk-8u40-linux-x64.tar.gz && ambari-sudo.sh cp -rp /var/lib/ambari-agent/data/tmp/jdk/* /usr/jdk64'] {'not_if': 'test -e /usr/jdk64/jdk1.8.0_40/bin/java'} 2017-03-25 06:30:22,199 - Skipping Execute['mkdir -p /var/lib/ambari-agent/data/tmp/jdk && cd /var/lib/ambari-agent/data/tmp/jdk && tar -xf /var/lib/ambari-agent/data/tmp/jdk-8u40-linux-x64.tar.gz && ambari-sudo.sh cp -rp /var/lib/ambari-agent/data/tmp/jdk/* /usr/jdk64'] due to not_if 2017-03-25 06:30:22,199 - File['/usr/jdk64/jdk1.8.0_40/bin/java'] {'mode': 0755, 'cd_access': 'a'} 2017-03-25 06:30:22,201 - Execute['('chgrp', '-R', 'hadoop', '/usr/jdk64/jdk1.8.0_40')'] {'sudo': True} 2017-03-25 06:30:22,231 - Execute['('chown', '-R', 'root', '/usr/jdk64/jdk1.8.0_40')'] {'sudo': True} 2017-03-25 06:30:22,441 - Package['ambari-metrics-monitor'] {} 2017-03-25 06:30:22,539 - Installing package ambari-metrics-monitor ('/usr/bin/yum -d 0 -e 0 -y install ambari-metrics-monitor')
Created 03-26-2017 03:54 AM
Hi @Jay SenSharma, Thanks for your input.
I removed the other repo files and have only "ambari.repo", "HDP.repo" and "HDP-UTILS.repo" and ran the following:
sudo python /usr/lib/python2.6/site-packages/ambari_agent/HostCleanup.py --silent --skip=users yum clean all ls -ltr /etc/yum.repos.d/But , i still could not get around the following error that was there previously:
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 with rpm_check_debug vs depsolve: libkadm5clnt_mit.so.8()(64bit) is needed by krb5-workstation-1.10.3-65.el6.x86_64 libkadm5clnt_mit.so.8(kadm5clnt_mit_8_MIT)(64bit) is needed by krb5-workstation-1.10.3-65.el6.x86_64 libkadm5srv_mit.so.8()(64bit) is needed by krb5-workstation-1.10.3-65.el6.x86_64 libkadm5srv_mit.so.8(kadm5srv_mit_8_MIT)(64bit) is needed by krb5-workstation-1.10.3-65.el6.x86_64 You could try running: rpm -Va --nofiles --nodigest Your transaction was saved, rerun it with: yum load-transaction /tmp/yum_save_tx-2017-03-25-06-305zHb5j.yumtx
After some googling I did the following on all hosts and i tried the CLUSTER INSTALL WIZARD from AMBARI again for Metrics Collector and Zookeeper installation on all EC2 nodes. It worked !! 🙂
[ec2-user@ip-172-31-5-78 ~]$ yum install libkadm5 Loaded plugins: amazon-id, rhui-lb, security Repo rhui-REGION-client-config-server-6 forced skip_if_unavailable=True due to: /etc/pki/rhui/cdn.redhat.com-chain.crt Repo rhui-REGION-client-config-server-6 forced skip_if_unavailable=True due to: /etc/pki/rhui/product/rhui-client-config-server-6.crt Repo rhui-REGION-client-config-server-6 forced skip_if_unavailable=True due to: /etc/pki/rhui/rhui-client-config-server-6.key Repo rhui-REGION-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/rhui/cdn.redhat.com-chain.crt Repo rhui-REGION-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/rhui/product/content-rhel6.crt Repo rhui-REGION-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/rhui/content-rhel6.key Repo rhui-REGION-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/rhui/cdn.redhat.com-chain.crt Repo rhui-REGION-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/rhui/product/content-rhel6.crt Repo rhui-REGION-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/rhui/content-rhel6.key Repo rhui-REGION-rhel-server-rh-common forced skip_if_unavailable=True due to: /etc/pki/rhui/cdn.redhat.com-chain.crt Repo rhui-REGION-rhel-server-rh-common forced skip_if_unavailable=True due to: /etc/pki/rhui/product/content-rhel6.crt Repo rhui-REGION-rhel-server-rh-common forced skip_if_unavailable=True due to: /etc/pki/rhui/content-rhel6.key You need to be root to perform this command. [ec2-user@ip-172-31-5-78 ~]$ sudo yum install libkadm5 Loaded plugins: amazon-id, rhui-lb, security Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package libkadm5.x86_64 0:1.10.3-65.el6 will be installed --> Processing Dependency: krb5-libs(x86-64) = 1.10.3-65.el6 for package: libkadm5-1.10.3-65.el6.x86_64 --> Running transaction check ---> Package krb5-libs.x86_64 0:1.10.3-15.el6_5.1 will be updated --> Processing Dependency: krb5-libs = 1.10.3-15.el6_5.1 for package: krb5-workstation-1.10.3-15.el6_5.1.x86_64 ---> Package krb5-libs.x86_64 0:1.10.3-65.el6 will be an update --> Running transaction check ---> Package krb5-workstation.x86_64 0:1.10.3-15.el6_5.1 will be updated ---> Package krb5-workstation.x86_64 0:1.10.3-65.el6 will be an update --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================================================ Installing: libkadm5 x86_64 1.10.3-65.el6 rhui-REGION-rhel-server-releases 143 k Updating for dependencies: krb5-libs x86_64 1.10.3-65.el6 rhui-REGION-rhel-server-releases 675 k krb5-workstation x86_64 1.10.3-65.el6 rhui-REGION-rhel-server-releases 814 k Transaction Summary ============================================================================================================================================================================ Install 1 Package(s) Upgrade 2 Package(s) Total size: 1.6 M Total download size: 143 k Is this ok [y/N]: y Downloading Packages: libkadm5-1.10.3-65.el6.x86_64.rpm | 143 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Updating : krb5-libs-1.10.3-65.el6.x86_64 1/5 Installing : libkadm5-1.10.3-65.el6.x86_64 2/5 Updating : krb5-workstation-1.10.3-65.el6.x86_64 3/5 Cleanup : krb5-workstation-1.10.3-15.el6_5.1.x86_64 4/5 Cleanup : krb5-libs-1.10.3-15.el6_5.1.x86_64 5/5 Verifying : krb5-libs-1.10.3-65.el6.x86_64 1/5 Verifying : libkadm5-1.10.3-65.el6.x86_64 2/5 Verifying : krb5-workstation-1.10.3-65.el6.x86_64 3/5 Verifying : krb5-libs-1.10.3-15.el6_5.1.x86_64 4/5 Verifying : krb5-workstation-1.10.3-15.el6_5.1.x86_64 5/5 Installed: libkadm5.x86_64 0:1.10.3-65.el6 Dependency Updated: krb5-libs.x86_64 0:1.10.3-65.el6 krb5-workstation.x86_64 0:1.10.3-65.el6 Complete!
Created 03-25-2017 01:42 PM
Please remove the duplicate *.repo files from the "/etc/yum/repos.d/" directory.
Yum gets confused because of the files "ambari_bkp.repo" , "ambari.repo", "hdp_bkp.repo", "hdp.repo", "HDP.repo". Ideally you should have only one file like "ambari.repo", "HDP.repo" and "HDP-UTILS.repo" (apart from the OS related repos)
Thats why you see the following message in the "/var/lib/ambari-agent/data/errors-107.txt" file.
Repository Updates-ambari-2.1.0 is listed more than once in the configuration Repository HDP-UTILS-1.1.0.20 is listed more than once in the configuration Repository HDP-2.3.0.0 is listed more than once in the configuration Repository
.
Please remove the duplicate .repo files from the /etc/yum.repos.d and then perform a yum clean
# yum clean all
.
Created 03-26-2017 03:54 AM
Hi @Jay SenSharma, Thanks for your input.
I removed the other repo files and have only "ambari.repo", "HDP.repo" and "HDP-UTILS.repo" and ran the following:
sudo python /usr/lib/python2.6/site-packages/ambari_agent/HostCleanup.py --silent --skip=users yum clean all ls -ltr /etc/yum.repos.d/But , i still could not get around the following error that was there previously:
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 with rpm_check_debug vs depsolve: libkadm5clnt_mit.so.8()(64bit) is needed by krb5-workstation-1.10.3-65.el6.x86_64 libkadm5clnt_mit.so.8(kadm5clnt_mit_8_MIT)(64bit) is needed by krb5-workstation-1.10.3-65.el6.x86_64 libkadm5srv_mit.so.8()(64bit) is needed by krb5-workstation-1.10.3-65.el6.x86_64 libkadm5srv_mit.so.8(kadm5srv_mit_8_MIT)(64bit) is needed by krb5-workstation-1.10.3-65.el6.x86_64 You could try running: rpm -Va --nofiles --nodigest Your transaction was saved, rerun it with: yum load-transaction /tmp/yum_save_tx-2017-03-25-06-305zHb5j.yumtx
After some googling I did the following on all hosts and i tried the CLUSTER INSTALL WIZARD from AMBARI again for Metrics Collector and Zookeeper installation on all EC2 nodes. It worked !! 🙂
[ec2-user@ip-172-31-5-78 ~]$ yum install libkadm5 Loaded plugins: amazon-id, rhui-lb, security Repo rhui-REGION-client-config-server-6 forced skip_if_unavailable=True due to: /etc/pki/rhui/cdn.redhat.com-chain.crt Repo rhui-REGION-client-config-server-6 forced skip_if_unavailable=True due to: /etc/pki/rhui/product/rhui-client-config-server-6.crt Repo rhui-REGION-client-config-server-6 forced skip_if_unavailable=True due to: /etc/pki/rhui/rhui-client-config-server-6.key Repo rhui-REGION-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/rhui/cdn.redhat.com-chain.crt Repo rhui-REGION-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/rhui/product/content-rhel6.crt Repo rhui-REGION-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/rhui/content-rhel6.key Repo rhui-REGION-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/rhui/cdn.redhat.com-chain.crt Repo rhui-REGION-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/rhui/product/content-rhel6.crt Repo rhui-REGION-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/rhui/content-rhel6.key Repo rhui-REGION-rhel-server-rh-common forced skip_if_unavailable=True due to: /etc/pki/rhui/cdn.redhat.com-chain.crt Repo rhui-REGION-rhel-server-rh-common forced skip_if_unavailable=True due to: /etc/pki/rhui/product/content-rhel6.crt Repo rhui-REGION-rhel-server-rh-common forced skip_if_unavailable=True due to: /etc/pki/rhui/content-rhel6.key You need to be root to perform this command. [ec2-user@ip-172-31-5-78 ~]$ sudo yum install libkadm5 Loaded plugins: amazon-id, rhui-lb, security Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package libkadm5.x86_64 0:1.10.3-65.el6 will be installed --> Processing Dependency: krb5-libs(x86-64) = 1.10.3-65.el6 for package: libkadm5-1.10.3-65.el6.x86_64 --> Running transaction check ---> Package krb5-libs.x86_64 0:1.10.3-15.el6_5.1 will be updated --> Processing Dependency: krb5-libs = 1.10.3-15.el6_5.1 for package: krb5-workstation-1.10.3-15.el6_5.1.x86_64 ---> Package krb5-libs.x86_64 0:1.10.3-65.el6 will be an update --> Running transaction check ---> Package krb5-workstation.x86_64 0:1.10.3-15.el6_5.1 will be updated ---> Package krb5-workstation.x86_64 0:1.10.3-65.el6 will be an update --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================================================ Installing: libkadm5 x86_64 1.10.3-65.el6 rhui-REGION-rhel-server-releases 143 k Updating for dependencies: krb5-libs x86_64 1.10.3-65.el6 rhui-REGION-rhel-server-releases 675 k krb5-workstation x86_64 1.10.3-65.el6 rhui-REGION-rhel-server-releases 814 k Transaction Summary ============================================================================================================================================================================ Install 1 Package(s) Upgrade 2 Package(s) Total size: 1.6 M Total download size: 143 k Is this ok [y/N]: y Downloading Packages: libkadm5-1.10.3-65.el6.x86_64.rpm | 143 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Updating : krb5-libs-1.10.3-65.el6.x86_64 1/5 Installing : libkadm5-1.10.3-65.el6.x86_64 2/5 Updating : krb5-workstation-1.10.3-65.el6.x86_64 3/5 Cleanup : krb5-workstation-1.10.3-15.el6_5.1.x86_64 4/5 Cleanup : krb5-libs-1.10.3-15.el6_5.1.x86_64 5/5 Verifying : krb5-libs-1.10.3-65.el6.x86_64 1/5 Verifying : libkadm5-1.10.3-65.el6.x86_64 2/5 Verifying : krb5-workstation-1.10.3-65.el6.x86_64 3/5 Verifying : krb5-libs-1.10.3-15.el6_5.1.x86_64 4/5 Verifying : krb5-workstation-1.10.3-15.el6_5.1.x86_64 5/5 Installed: libkadm5.x86_64 0:1.10.3-65.el6 Dependency Updated: krb5-libs.x86_64 0:1.10.3-65.el6 krb5-workstation.x86_64 0:1.10.3-65.el6 Complete!