<?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 to use Ambari API to add host to config groups without blueprint? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-Ambari-API-to-add-host-to-config-groups-without/m-p/158794#M53246</link>
    <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;Is there a way I can use Ambari API call to add a host to different yarn config groups or move the host from the Default to customized? I can do it manually like &lt;A href="https://developer.ibm.com/hadoop/2015/11/10/override-component-configurations-with-ambari-configuration-groups/"&gt;this&lt;/A&gt;. But not sure if this feature is supported by API? This would be really helpful!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Meng&lt;A href="https://developer.ibm.com/hadoop/2015/11/10/override-component-configurations-with-ambari-configuration-groups/"&gt;
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;
&lt;A href="https://developer.ibm.com/hadoop/2015/11/10/override-component-configurations-with-ambari-configuration-groups/"&gt;&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2017 06:06:59 GMT</pubDate>
    <dc:creator>meng_meng</dc:creator>
    <dc:date>2017-02-03T06:06:59Z</dc:date>
    <item>
      <title>how to use Ambari API to add host to config groups without blueprint?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-Ambari-API-to-add-host-to-config-groups-without/m-p/158794#M53246</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;Is there a way I can use Ambari API call to add a host to different yarn config groups or move the host from the Default to customized? I can do it manually like &lt;A href="https://developer.ibm.com/hadoop/2015/11/10/override-component-configurations-with-ambari-configuration-groups/"&gt;this&lt;/A&gt;. But not sure if this feature is supported by API? This would be really helpful!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Meng&lt;A href="https://developer.ibm.com/hadoop/2015/11/10/override-component-configurations-with-ambari-configuration-groups/"&gt;
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;
&lt;A href="https://developer.ibm.com/hadoop/2015/11/10/override-component-configurations-with-ambari-configuration-groups/"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 06:06:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-Ambari-API-to-add-host-to-config-groups-without/m-p/158794#M53246</guid>
      <dc:creator>meng_meng</dc:creator>
      <dc:date>2017-02-03T06:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to use Ambari API to add host to config groups without blueprint?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-Ambari-API-to-add-host-to-config-groups-without/m-p/158795#M53247</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/14772/mengmeng.html" nodeid="14772"&gt;@Meng Meng&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ambari UI si completely driven from Ambari REST API&lt;/P&gt;&lt;P&gt;API call to create a new YARN config group and add a host from default group to it:&lt;/P&gt;&lt;PRE&gt;curl 'http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/config_groups'   -u admin:admin -H "X-Requested-By: ambari" -i -X POST --data '[{"ConfigGroup":{"group_name":"custom_group","tag":"YARN","description":"This is a custom group","desired_configs":[],"hosts":[{"host_name":"c6401.ambari.apache.org"}]}}]' 
&lt;/PRE&gt;&lt;P&gt;But if a host does not belong to Default config group and belongs to any other custom group and is desired to be moved to another custom config group then first it needs to be removed from prior custom config group and then be added to the desired new custom config group. The same API (use PUT instead of POST method) as mentioned above can be used to first remove it from the previous config group &lt;/P&gt;&lt;PRE&gt;curl 'http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/config_groups/2' -u admin:admin -H "X-Requested-By: ambari" -i  -X PUT --data '{"ConfigGroup":{"group_name":"custom_group","description":"This is a custom group","tag":"YARN","hosts":[],"desired_configs":[]}}' --compressed&lt;/PRE&gt;&lt;P&gt;Note: In above mentioned APIs, you need to change ambari-server hostname, cluster name, group_name, description and tag (service name) as applicable in your environment&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 04:21:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-Ambari-API-to-add-host-to-config-groups-without/m-p/158795#M53247</guid>
      <dc:creator>jaimin</dc:creator>
      <dc:date>2017-02-04T04:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to use Ambari API to add host to config groups without blueprint?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-Ambari-API-to-add-host-to-config-groups-without/m-p/158796#M53248</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/465/jaimin.html" nodeid="465"&gt;@jaimin&lt;/A&gt;  Thank you for the information. This resolved my issue!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 07:15:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-Ambari-API-to-add-host-to-config-groups-without/m-p/158796#M53248</guid>
      <dc:creator>meng_meng</dc:creator>
      <dc:date>2017-02-08T07:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to use Ambari API to add host to config groups without blueprint?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-Ambari-API-to-add-host-to-config-groups-without/m-p/158797#M53249</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14772/mengmeng.html" nodeid="14772"&gt;@Meng Meng&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Glad to know that. Please accept the above answer when you get chance, so it can be noted as correct answer to this issue.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 07:27:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-Ambari-API-to-add-host-to-config-groups-without/m-p/158797#M53249</guid>
      <dc:creator>jaimin</dc:creator>
      <dc:date>2017-02-08T07:27:04Z</dc:date>
    </item>
  </channel>
</rss>

