<?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 How do I add a new host to the cluster through API in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-a-new-host-to-the-cluster-through-API/m-p/45706#M42151</link>
    <description>&lt;P&gt;I tried to use&lt;/P&gt;&lt;PRE&gt;API.create_host(hadoop_roles.HOSTNAME, hadoop_roles.HOSTNAME, IP)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;But when I tried to apply host template after this, it compained the parcel is not installed. I then tried execute&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;parcel&lt;/SPAN&gt;.start_distribution()&lt;BR /&gt;&lt;SPAN&gt;parcel&lt;/SPAN&gt;.activate()&lt;/PRE&gt;&lt;P&gt;But the same problem remains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what is the API call to add a new host.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This problem is related to&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Cloudera-Manager-Installation/How-to-use-CM-API-to-distribute-parcel-to-a-host/m-p/45650#M8259" target="_blank"&gt;https://community.cloudera.com/t5/Cloudera-Manager-Installation/How-to-use-CM-API-to-distribute-parcel-to-a-host/m-p/45650#M8259&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 10:42:09 GMT</pubDate>
    <dc:creator>keagles</dc:creator>
    <dc:date>2022-09-16T10:42:09Z</dc:date>
    <item>
      <title>How do I add a new host to the cluster through API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-a-new-host-to-the-cluster-through-API/m-p/45706#M42151</link>
      <description>&lt;P&gt;I tried to use&lt;/P&gt;&lt;PRE&gt;API.create_host(hadoop_roles.HOSTNAME, hadoop_roles.HOSTNAME, IP)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;But when I tried to apply host template after this, it compained the parcel is not installed. I then tried execute&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;parcel&lt;/SPAN&gt;.start_distribution()&lt;BR /&gt;&lt;SPAN&gt;parcel&lt;/SPAN&gt;.activate()&lt;/PRE&gt;&lt;P&gt;But the same problem remains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what is the API call to add a new host.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This problem is related to&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Cloudera-Manager-Installation/How-to-use-CM-API-to-distribute-parcel-to-a-host/m-p/45650#M8259" target="_blank"&gt;https://community.cloudera.com/t5/Cloudera-Manager-Installation/How-to-use-CM-API-to-distribute-parcel-to-a-host/m-p/45650#M8259&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:42:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-a-new-host-to-the-cluster-through-API/m-p/45706#M42151</guid>
      <dc:creator>keagles</dc:creator>
      <dc:date>2022-09-16T10:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a new host to the cluster through API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-a-new-host-to-the-cluster-through-API/m-p/45710#M42152</link>
      <description>&lt;P&gt;I found the answer, I should use&lt;/P&gt;&lt;PRE&gt;cluster.add_hosts(hostid[])&lt;/PRE&gt;&lt;P&gt;I hope cloudera can doument this funciton call here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://cloudera.github.io/cm_api/epydoc/5.8.0/cm_api-module.html" target="_blank"&gt;https://cloudera.github.io/cm_api/epydoc/5.8.0/cm_api-module.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 22:27:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-a-new-host-to-the-cluster-through-API/m-p/45710#M42152</guid>
      <dc:creator>keagles</dc:creator>
      <dc:date>2016-09-28T22:27:31Z</dc:date>
    </item>
  </channel>
</rss>

