<?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: Automated way of adding a host to an ambari managed cluster. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Automated-way-of-adding-a-host-to-an-ambari-managed-cluster/m-p/137926#M31857</link>
    <description>&lt;P&gt;Oops! my bad...&lt;/P&gt;&lt;P&gt;Did it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:35:35 GMT</pubDate>
    <dc:creator>multithreaded_1</dc:creator>
    <dc:date>2016-06-15T19:35:35Z</dc:date>
    <item>
      <title>Automated way of adding a host to an ambari managed cluster.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Automated-way-of-adding-a-host-to-an-ambari-managed-cluster/m-p/137919#M31850</link>
      <description>&lt;P&gt;I am automating the process of recovery of a failed host in a cluster(using python), and I need to add a host to the cluster then I will install components on that.&lt;/P&gt;&lt;P&gt;Ambari has API to add a host e.g. &lt;/P&gt;&lt;P&gt;requests.post("
http://&amp;lt;ambari-host-IP&amp;gt;:&amp;lt;port&amp;gt;/api/v1/clusters/&amp;lt;CLUSTERNAME&amp;gt;/hosts/&amp;lt;HOSTNAME&amp;gt;", auth=self.auth, headers=self.headers, proxies=self.proxyDict) &lt;/P&gt;&lt;P&gt;but it dosent takes ssh key and password. &lt;/P&gt;&lt;P&gt;I dont want to explicitly  install abmari agent using YUM(and changing agent.ini config file)because server version and agent version may not match.&lt;/P&gt;&lt;P&gt;Do we have a way to add ssh key and ssh password to above post command.&lt;/P&gt;&lt;P&gt;Or, is there any other automated way to add and register a host to an existing cluster through a python prograam ?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 21:04:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Automated-way-of-adding-a-host-to-an-ambari-managed-cluster/m-p/137919#M31850</guid>
      <dc:creator>multithreaded_1</dc:creator>
      <dc:date>2016-06-14T21:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Automated way of adding a host to an ambari managed cluster.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Automated-way-of-adding-a-host-to-an-ambari-managed-cluster/m-p/137920#M31851</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10296/multithreadedmike.html" nodeid="10296"&gt;@Mukesh Burman&lt;/A&gt;&lt;P&gt;Using ambari api/ post command you will not able to install/register new host to the cluster.&lt;/P&gt;&lt;P&gt;To achieve this you need to write custom python script and get the steps done as mentioned in - &lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Add+a+host+and+deploy+components+using+APIs" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Add+a+host+and+deploy+components+using+APIs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 21:19:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Automated-way-of-adding-a-host-to-an-ambari-managed-cluster/m-p/137920#M31851</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-06-14T21:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Automated way of adding a host to an ambari managed cluster.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Automated-way-of-adding-a-host-to-an-ambari-managed-cluster/m-p/137921#M31852</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10296/multithreadedmike.html" nodeid="10296"&gt;@Mukesh Burman&lt;/A&gt; You can also check Ambari Blueprints for automation&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 01:42:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Automated-way-of-adding-a-host-to-an-ambari-managed-cluster/m-p/137921#M31852</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-06-15T01:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Automated way of adding a host to an ambari managed cluster.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Automated-way-of-adding-a-host-to-an-ambari-managed-cluster/m-p/137922#M31853</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt; Many thanks for your reply, but the page u refereed, starts with "&lt;STRONG&gt;Ensure the host is registered properly&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;and, I need a way to register a host with ssh key and password, so that ambari server can install ambari agent on new host.&lt;/P&gt;&lt;P&gt;without ssh key and password, ambari server fails to to so, In ambari UI there is an option to put a ssh key and password but how to do that using curl command ?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 12:13:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Automated-way-of-adding-a-host-to-an-ambari-managed-cluster/m-p/137922#M31853</guid>
      <dc:creator>multithreaded_1</dc:creator>
      <dc:date>2016-06-15T12:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Automated way of adding a host to an ambari managed cluster.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Automated-way-of-adding-a-host-to-an-ambari-managed-cluster/m-p/137923#M31854</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10296/multithreadedmike.html" nodeid="10296"&gt;@Mukesh Burman&lt;/A&gt;&lt;/P&gt;&lt;P&gt;See if this is what you are looking for. &lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Installing+ambari-agent+on+target+hosts" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Installing+ambari-agent+on+target+hosts&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 12:53:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Automated-way-of-adding-a-host-to-an-ambari-managed-cluster/m-p/137923#M31854</guid>
      <dc:creator>rpathak</dc:creator>
      <dc:date>2016-06-15T12:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Automated way of adding a host to an ambari managed cluster.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Automated-way-of-adding-a-host-to-an-ambari-managed-cluster/m-p/137924#M31855</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10322/rpathak.html" nodeid="10322"&gt;@Rahul Pathak&lt;/A&gt; I already tried this, but after submitting bootstrap request, it never returns a failure or success response, I always get a running status, although, I carried on further and saw that ambari agent was installed successfully(despite of not getting a failure/success response). And like this my job is done.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks man&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:25:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Automated-way-of-adding-a-host-to-an-ambari-managed-cluster/m-p/137924#M31855</guid>
      <dc:creator>multithreaded_1</dc:creator>
      <dc:date>2016-06-15T19:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Automated way of adding a host to an ambari managed cluster.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Automated-way-of-adding-a-host-to-an-ambari-managed-cluster/m-p/137925#M31856</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10296/multithreadedmike.html" nodeid="10296"&gt;@Mukesh Burman&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I guess you can accept my answer. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:30:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Automated-way-of-adding-a-host-to-an-ambari-managed-cluster/m-p/137925#M31856</guid>
      <dc:creator>rpathak</dc:creator>
      <dc:date>2016-06-15T19:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Automated way of adding a host to an ambari managed cluster.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Automated-way-of-adding-a-host-to-an-ambari-managed-cluster/m-p/137926#M31857</link>
      <description>&lt;P&gt;Oops! my bad...&lt;/P&gt;&lt;P&gt;Did it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:35:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Automated-way-of-adding-a-host-to-an-ambari-managed-cluster/m-p/137926#M31857</guid>
      <dc:creator>multithreaded_1</dc:creator>
      <dc:date>2016-06-15T19:35:35Z</dc:date>
    </item>
  </channel>
</rss>

