<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question sudo yum install ambari-agent fails on ambari host in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/sudo-yum-install-ambari-agent-fails-on-ambari-host/m-p/180341#M75269</link>
    <description>&lt;P&gt;Can an ambari agent be installed alongside ambari server?&lt;/P&gt;&lt;P&gt;I have an ambari server running with agents. I want to add the server as another agent.&lt;/P&gt;&lt;P&gt;On the ambar-server:&lt;/P&gt;&lt;PRE&gt;sudo yum install ambari-agent&lt;/PRE&gt;&lt;P&gt;Fails with the following output:&lt;/P&gt;&lt;PRE&gt;ambari-2.6.1.0                                                                                                                                                    | 2.9 kB  00:00:00
beats                                                                                                                                                             | 2.5 kB  00:00:00
bintray--sbt-rpm                                                                                                                                                  | 1.3 kB  00:00:00
chef                                                                                                                                                              | 2.9 kB  00:00:00
epel/x86_64/metalink                                                                                                                                              |  16 kB  00:00:00
ius                                                                                                                                                               | 2.9 kB  00:00:00
rsyslog_v8                                                                                                                                                        | 2.9 kB  00:00:00
Resolving Dependencies
--&amp;gt; Running transaction check
---&amp;gt; Package ambari-agent.x86_64 0:2.6.1.0-143 will be installed
--&amp;gt; Finished Dependency Resolution


Dependencies Resolved


=========================================================================================================================================================================================
 Package                                      Arch                                   Version                                        Repository                                      Size
=========================================================================================================================================================================================
Installing:
 ambari-agent                                 x86_64                                 2.6.1.0-143                                    ambari-2.6.1.0                                  90 M


Transaction Summary
=========================================================================================================================================================================================
Install  1 Package


Total download size: 90 M
Installed size: 125 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7Server/ambari-2.6.1.0/packages/ambari-agent-2.6.1.0-143.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 07513cad: NOKEY  32 MB/s |  80 MB  00:00:00 ETA
Public key for ambari-agent-2.6.1.0-143.x86_64.rpm is not installed
ambari-agent-2.6.1.0-143.x86_64.rpm                                                                                                                               |  90 MB  00:00:01
Retrieving key from &lt;A href="http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.1.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins" target="_blank"&gt;http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.1.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins&lt;/A&gt;
Importing GPG key 0x07513CAD:
 Userid     : "Jenkins (HDP Builds) &amp;lt;jenkin@hortonworks.com&amp;gt;"
 Fingerprint: df52 ed4f 7a3a 5882 c099 4c66 b973 3a7a 0751 3cad
 From       : &lt;A href="http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.1.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins" target="_blank"&gt;http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.1.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins&lt;/A&gt;
Is this ok [y/N]: y
Running transaction check
Running transaction test




Transaction check error:
  file /usr/lib/python2.6/site-packages from install of ambari-agent-2.6.1.0-143.x86_64 conflicts with file from package ambari-server-2.6.1.0-0.x86_64


Error Summary
-------------
&lt;/PRE&gt;</description>
    <pubDate>Sun, 04 Mar 2018 15:04:56 GMT</pubDate>
    <dc:creator>lapolonio</dc:creator>
    <dc:date>2018-03-04T15:04:56Z</dc:date>
    <item>
      <title>sudo yum install ambari-agent fails on ambari host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/sudo-yum-install-ambari-agent-fails-on-ambari-host/m-p/180341#M75269</link>
      <description>&lt;P&gt;Can an ambari agent be installed alongside ambari server?&lt;/P&gt;&lt;P&gt;I have an ambari server running with agents. I want to add the server as another agent.&lt;/P&gt;&lt;P&gt;On the ambar-server:&lt;/P&gt;&lt;PRE&gt;sudo yum install ambari-agent&lt;/PRE&gt;&lt;P&gt;Fails with the following output:&lt;/P&gt;&lt;PRE&gt;ambari-2.6.1.0                                                                                                                                                    | 2.9 kB  00:00:00
beats                                                                                                                                                             | 2.5 kB  00:00:00
bintray--sbt-rpm                                                                                                                                                  | 1.3 kB  00:00:00
chef                                                                                                                                                              | 2.9 kB  00:00:00
epel/x86_64/metalink                                                                                                                                              |  16 kB  00:00:00
ius                                                                                                                                                               | 2.9 kB  00:00:00
rsyslog_v8                                                                                                                                                        | 2.9 kB  00:00:00
Resolving Dependencies
--&amp;gt; Running transaction check
---&amp;gt; Package ambari-agent.x86_64 0:2.6.1.0-143 will be installed
--&amp;gt; Finished Dependency Resolution


Dependencies Resolved


=========================================================================================================================================================================================
 Package                                      Arch                                   Version                                        Repository                                      Size
=========================================================================================================================================================================================
Installing:
 ambari-agent                                 x86_64                                 2.6.1.0-143                                    ambari-2.6.1.0                                  90 M


Transaction Summary
=========================================================================================================================================================================================
Install  1 Package


Total download size: 90 M
Installed size: 125 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7Server/ambari-2.6.1.0/packages/ambari-agent-2.6.1.0-143.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 07513cad: NOKEY  32 MB/s |  80 MB  00:00:00 ETA
Public key for ambari-agent-2.6.1.0-143.x86_64.rpm is not installed
ambari-agent-2.6.1.0-143.x86_64.rpm                                                                                                                               |  90 MB  00:00:01
Retrieving key from &lt;A href="http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.1.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins" target="_blank"&gt;http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.1.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins&lt;/A&gt;
Importing GPG key 0x07513CAD:
 Userid     : "Jenkins (HDP Builds) &amp;lt;jenkin@hortonworks.com&amp;gt;"
 Fingerprint: df52 ed4f 7a3a 5882 c099 4c66 b973 3a7a 0751 3cad
 From       : &lt;A href="http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.1.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins" target="_blank"&gt;http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.1.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins&lt;/A&gt;
Is this ok [y/N]: y
Running transaction check
Running transaction test




Transaction check error:
  file /usr/lib/python2.6/site-packages from install of ambari-agent-2.6.1.0-143.x86_64 conflicts with file from package ambari-server-2.6.1.0-0.x86_64


Error Summary
-------------
&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Mar 2018 15:04:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/sudo-yum-install-ambari-agent-fails-on-ambari-host/m-p/180341#M75269</guid>
      <dc:creator>lapolonio</dc:creator>
      <dc:date>2018-03-04T15:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: sudo yum install ambari-agent fails on ambari host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/sudo-yum-install-ambari-agent-fails-on-ambari-host/m-p/180342#M75270</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/69350/apolonioleonardo.html" nodeid="69350"&gt;@Leonardo Apolonio&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We see the error as conflict between packages:&lt;/P&gt;&lt;PRE&gt;file /usr/lib/python2.6/site-packages from install of ambari-agent-2.6.1.0-143.x86_64 conflicts with file from package ambari-server-2.6.1.0-0.x86_64&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This error indicates that you have AmbariServer package of version 2.6.1.0.0 but trying to install Ambari-Agent of version 2.6.1.0-143 (slightly higher). Which is causing the conflict.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please check if you have duplicate ambari repos like (2.6.1.0-143 as well as 2.6.1.0.0 both) on the same host?&lt;/P&gt;&lt;P&gt;In that case remove the Old unwanted ambari repo from the mentioned dir and then perform a yum clean.&lt;/P&gt;&lt;PRE&gt;# grep baseurl /etc/yum.repos.d/*  | grep ambari&lt;/PRE&gt;&lt;P&gt;So can you please try this:&lt;/P&gt;&lt;PRE&gt;# yum clean all&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Then retry the agent installation or try the "yum &lt;STRONG&gt;upgrade&lt;/STRONG&gt; ambari-server" first and then upgrade the agent.&lt;/P&gt;&lt;PRE&gt;# sudo yum upgrade ambari-server 
# sudo yum upgrade ambari-agent&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Mar 2018 15:13:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/sudo-yum-install-ambari-agent-fails-on-ambari-host/m-p/180342#M75270</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-03-04T15:13:48Z</dc:date>
    </item>
  </channel>
</rss>

