<?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 Re: How we can sync up the ambari agents in other nodes after ambari upgrade? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-we-can-sync-up-the-ambari-agents-in-other-nodes-after/m-p/169784#M132090</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11779/narasimharao458.html" nodeid="11779"&gt;@Narasimha Gunturu&lt;/A&gt; - In such cases, it is good to write a script to upgrade the agents across all nodes&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE&gt;key="/tmp/ambari-keypair"
for i in {1..5} ; do ssh -i $key -o StrictHostKeyChecking=no root@host-$i.mydomain ambari-agent stop ; done
repourl="http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.2.0/ambari.repo"

for i in {1..5} ; do ssh -i $key root@host-$i.mydomain  wget -nv $repourl -O /etc/yum.repos.d/ambari.repo; done
for i in {1..5} ; do ssh -i $key root@host-$i.mydomain yum upgrade -y ambari-agent ; done
for i in {1..5} ; do ssh -i $key root@host-$i.mydomain ambari-agent start ; done
&lt;/PRE&gt;&lt;P&gt;Here host-1.mydomain to host-5.mydomain are the five agent nodes and 'key' variable holds the ssh key to connect to those nodes from a central server (could be the Ambari server host)&lt;/P&gt;</description>
    <pubDate>Tue, 09 Aug 2016 19:59:22 GMT</pubDate>
    <dc:creator>vsharma</dc:creator>
    <dc:date>2016-08-09T19:59:22Z</dc:date>
    <item>
      <title>How we can sync up the ambari agents in other nodes after ambari upgrade?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-we-can-sync-up-the-ambari-agents-in-other-nodes-after/m-p/169780#M132086</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;We are using 24 node cluster.&lt;/P&gt;&lt;P&gt;We have upgraded my Ambari-server and ambari agent in main server. How can i sync up the ambari agent in all other nodes.&lt;/P&gt;&lt;P&gt;Can someone please help us?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 18:09:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-we-can-sync-up-the-ambari-agents-in-other-nodes-after/m-p/169780#M132086</guid>
      <dc:creator>Narasimha99</dc:creator>
      <dc:date>2016-08-09T18:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: How we can sync up the ambari agents in other nodes after ambari upgrade?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-we-can-sync-up-the-ambari-agents-in-other-nodes-after/m-p/169781#M132087</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11779/narasimharao458.html" nodeid="11779"&gt;@Narasimha Gunturu&lt;/A&gt; &lt;/P&gt;&lt;P&gt;You would need to upgrade the Ambari agent in other nodes as well. Check below link for details (point #7):&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_upgrading_Ambari/content/_upgrade_ambari.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_upgrading_Ambari/content/_upgrade_ambari.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Once agents are upgraded and started, they would sync up with Ambari server. All agents should be at same version as Ambari server&lt;/P&gt;&lt;P&gt;-Vivek&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 18:09:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-we-can-sync-up-the-ambari-agents-in-other-nodes-after/m-p/169781#M132087</guid>
      <dc:creator>vsharma</dc:creator>
      <dc:date>2016-08-09T18:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: How we can sync up the ambari agents in other nodes after ambari upgrade?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-we-can-sync-up-the-ambari-agents-in-other-nodes-after/m-p/169782#M132088</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/11779/narasimharao458.html" nodeid="11779"&gt;@Narasimha Gunturu&lt;/A&gt;&lt;P&gt;On all host you need to do -&lt;/P&gt;&lt;P&gt;1. ambari-agent stop&lt;/P&gt;&lt;P&gt;2. #yum upgrade ambari-agent&lt;/P&gt;&lt;P&gt;3. ambari-agent restart&lt;/P&gt;&lt;P&gt;Thats sit.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 19:35:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-we-can-sync-up-the-ambari-agents-in-other-nodes-after/m-p/169782#M132088</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-08-09T19:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: How we can sync up the ambari agents in other nodes after ambari upgrade?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-we-can-sync-up-the-ambari-agents-in-other-nodes-after/m-p/169783#M132089</link>
      <description>&lt;P&gt;@Vivek,&lt;/P&gt;&lt;P&gt;If it is single digit nodes we can update the agent manually.&lt;/P&gt;&lt;P&gt;For example: If it is 500 Node cluster, is there any way to sync up the updated agent in all the nodes at a time?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 19:40:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-we-can-sync-up-the-ambari-agents-in-other-nodes-after/m-p/169783#M132089</guid>
      <dc:creator>Narasimha99</dc:creator>
      <dc:date>2016-08-09T19:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: How we can sync up the ambari agents in other nodes after ambari upgrade?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-we-can-sync-up-the-ambari-agents-in-other-nodes-after/m-p/169784#M132090</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11779/narasimharao458.html" nodeid="11779"&gt;@Narasimha Gunturu&lt;/A&gt; - In such cases, it is good to write a script to upgrade the agents across all nodes&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE&gt;key="/tmp/ambari-keypair"
for i in {1..5} ; do ssh -i $key -o StrictHostKeyChecking=no root@host-$i.mydomain ambari-agent stop ; done
repourl="http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.2.0/ambari.repo"

for i in {1..5} ; do ssh -i $key root@host-$i.mydomain  wget -nv $repourl -O /etc/yum.repos.d/ambari.repo; done
for i in {1..5} ; do ssh -i $key root@host-$i.mydomain yum upgrade -y ambari-agent ; done
for i in {1..5} ; do ssh -i $key root@host-$i.mydomain ambari-agent start ; done
&lt;/PRE&gt;&lt;P&gt;Here host-1.mydomain to host-5.mydomain are the five agent nodes and 'key' variable holds the ssh key to connect to those nodes from a central server (could be the Ambari server host)&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 19:59:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-we-can-sync-up-the-ambari-agents-in-other-nodes-after/m-p/169784#M132090</guid>
      <dc:creator>vsharma</dc:creator>
      <dc:date>2016-08-09T19:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: How we can sync up the ambari agents in other nodes after ambari upgrade?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-we-can-sync-up-the-ambari-agents-in-other-nodes-after/m-p/169785#M132091</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11779/narasimharao458.html" nodeid="11779"&gt;@Narasimha Gunturu&lt;/A&gt; &lt;/P&gt;&lt;P&gt;1. Just put the hostname/ipaddress in a file say - '/tmp/nodes'&lt;/P&gt;&lt;P&gt;2. use below command to run -&lt;/P&gt;&lt;P&gt;for i in `cat /tmp/nodes`; do ssh $i 'yum upgrade -y ambari-agent; /etc/init.d/ambari-agent restart'; done&lt;/P&gt;&lt;P&gt;-- [You might need to enter password if there is no passwordless ssh configured]&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 21:57:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-we-can-sync-up-the-ambari-agents-in-other-nodes-after/m-p/169785#M132091</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-08-09T21:57:32Z</dc:date>
    </item>
  </channel>
</rss>

