<?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 REST API + how to verify that all components are stop in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-how-to-verify-that-all-components-are-stop/m-p/207544#M74105</link>
    <description>&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;we have 3 masters machines ( master01 master02 master03 ) and on each master machine we have the relevant component&lt;/P&gt;&lt;P&gt;how to verify by API that all component on the specific master machine are stop?&lt;/P&gt;&lt;P&gt;for example we want to verify that all component on master01 are stoped&lt;/P&gt;&lt;P&gt;the API will return info (stop/start) about all componets that are run on master01&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2018 18:04:34 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2018-01-31T18:04:34Z</dc:date>
    <item>
      <title>REST API + how to verify that all components are stop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-how-to-verify-that-all-components-are-stop/m-p/207544#M74105</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;we have 3 masters machines ( master01 master02 master03 ) and on each master machine we have the relevant component&lt;/P&gt;&lt;P&gt;how to verify by API that all component on the specific master machine are stop?&lt;/P&gt;&lt;P&gt;for example we want to verify that all component on master01 are stoped&lt;/P&gt;&lt;P&gt;the API will return info (stop/start) about all componets that are run on master01&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 18:04:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-how-to-verify-that-all-components-are-stop/m-p/207544#M74105</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-01-31T18:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: REST API + how to verify that all components are stop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-how-to-verify-that-all-components-are-stop/m-p/207545#M74106</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You can use the below curl call to get the info&lt;/P&gt;&lt;PRE&gt;curl -u {ambari-username}:{ambari-password} -H "X-Requested-By: ambari" -X GET &lt;A href="http://{ambari-host}:{ambari-port}/api/v1/clusters/{clustername}/hosts/{host-name}/host_components?fields=HostRoles/state" target="_blank"&gt;http://{ambari-host}:{ambari-port}/api/v1/clusters/{clustername}/hosts/{host-name}/host_components?fields=HostRoles/state&lt;/A&gt;


Sample response:

{
  "href": "http://10.10.1.1:8080/api/v1/clusters/cl1/hosts/master03/host_components?fields=HostRoles/state",
  "items": [
    {
      "href": "http://10.10.1.1:8080/api/v1/clusters/cl1/hosts/master03/host_components/ACCUMULO_CLIENT",
      "HostRoles": {
        "cluster_name": "cl1",
        "component_name": "ACCUMULO_CLIENT",
        "host_name": "master03",
        "state": "INSTALLED"
      },
      "host": {
        "href": "http://10.10.1.1:8080/api/v1/clusters/cl1/hosts/master03"
      }
    },
    {
      "href": "http://10.10.1.1:8080/api/v1/clusters/cl1/hosts/master03/host_components/APP_TIMELINE_SERVER",
      "HostRoles": {
        "cluster_name": "cl1",
        "component_name": "APP_TIMELINE_SERVER",
        "host_name": "master03",
        "state": "STARTED"
      },
      "host": {
        "href": "http://10.10.1.1:8080/api/v1/clusters/cl1/hosts/master03"
      }
    }
  ]
}

&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 18:37:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-how-to-verify-that-all-components-are-stop/m-p/207545#M74106</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2018-01-31T18:37:51Z</dc:date>
    </item>
  </channel>
</rss>

