<?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: AMBARI REST API + how to know the status of service on specific host in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-know-the-status-of-service-on/m-p/239298#M201109</link>
    <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="http://michael%20bronson/" target="_blank"&gt;&lt;EM&gt;@Michael Bronson&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Any updates?&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2019 22:16:02 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2019-04-30T22:16:02Z</dc:date>
    <item>
      <title>AMBARI REST API + how to know the status of service on specific host</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-know-the-status-of-service-on/m-p/239296#M201107</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I use the following API , to stop the SPARK2_THRIFTSERVER , on specific node - node2&lt;/P&gt;&lt;PRE&gt; curl -u admin:admin -i -H 'X-Requested-By: ambari' -X PUT -d '{"HostRoles": {"state": "INSTALLED"}}' &lt;A href="http://node2:8080/api/v1/clusters/HDP/hosts/node1/host_components/SPARK2_THRIFTSERVER" target="_blank"&gt;http://node2:8080/api/v1/clusters/HDP/hosts/node1/host_components/SPARK2_THRIFTSERVER&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;after the API performed&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;how to know if service stooped ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2019 18:02:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-know-the-status-of-service-on/m-p/239296#M201107</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-04-28T18:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: AMBARI REST API + how to know the status of service on specific host</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-know-the-status-of-service-on/m-p/239297#M201108</link>
      <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="http://@Michael%20Bronson" target="_blank"&gt;@Michael Bronson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If your earlier API command was like below&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -i -H 'X-Requested-By: ambari' -X PUT -d '{"HostRoles": {"state": "INSTALLED"}}' &lt;A href="http://node2:8080/api/v1/clusters/HDP/hosts/node1/host_components/SPARK2_THRIFTSERVER" target="_blank"&gt;http://node2:8080/api/v1/clusters/HDP/hosts/node1/host_components/SPARK2_THRIFTSERVER&lt;/A&gt;
HTTP/1.1 202 Accepted
.....
...
{
&amp;nbsp; "href" : "http://node2:8080/api/v1/clusters/HDP/requests/174",
&amp;nbsp; "Requests" : {
&amp;nbsp; &amp;nbsp; "id" : 174,
&amp;nbsp; &amp;nbsp; "status" : "Accepted"
&amp;nbsp; } &amp;nbsp; &lt;/PRE&gt;&lt;P&gt;Then you should take note of the Request id i.e 174 in the above &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;curl -u admin:admin -i -H 'X-Requested-By: ambari' -X GET &lt;A rel="noopener noreferrer noopener noreferrer" href="http://node2:8080/api/v1/clusters/HDP/requests/%7b174%7d" target="_blank"&gt;http://node2:8080/api/v1/clusters/HDP/requests/{174}&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -i -H 'X-Requested-By: ambari' -X GET &lt;A href="http://node2:8080/api/v1/clusters/HDP/requests/{174}" target="_blank"&gt;http://node2:8080/api/v1/clusters/HDP/requests/{174}&lt;/A&gt;
HTTP/1.1 200 OK
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Cache-Control: no-store
Pragma: no-cache
Set-Cookie: AMBARISESSIONID=140pqxfdj6o06egemwmnallrt;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
User: admin
Content-Type: text/plain
Vary: Accept-Encoding, User-Agent
Content-Length: 2301


&lt;/PRE&gt;&lt;P&gt;output&lt;/P&gt;&lt;PRE&gt;.....
...
"cluster_name" : "HDP",
&amp;nbsp; &amp;nbsp; "completed_task_count" : 1,
&amp;nbsp; &amp;nbsp; "create_time" : 1556457466529,
&amp;nbsp; &amp;nbsp; "end_time" : 1556457510975,
&amp;nbsp; &amp;nbsp; "exclusive" : false,
&amp;nbsp; &amp;nbsp; "failed_task_count" : 0,
&amp;nbsp; &amp;nbsp; "id" : 174,
&amp;nbsp; &amp;nbsp; "inputs" : null,
&amp;nbsp; &amp;nbsp; "operation_level" : null,
&amp;nbsp; &amp;nbsp; "progress_percent" : 100.0,
&amp;nbsp; &amp;nbsp; "queued_task_count" : 0,
&amp;nbsp; &amp;nbsp; "request_context" : "",
&amp;nbsp; &amp;nbsp; "request_schedule" : null,
&amp;nbsp; &amp;nbsp; "request_status" : "COMPLETED",
&amp;nbsp; &amp;nbsp; "resource_filters" : [ ],
&amp;nbsp; &amp;nbsp; "start_time" : 1556457466884,
&amp;nbsp; &amp;nbsp; "task_count" : 1,
&amp;nbsp; &amp;nbsp; "timed_out_task_count" : 0,
&amp;nbsp; &amp;nbsp; "type" : "INTERNAL_REQUEST"
&amp;nbsp; },
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Apr 2019 01:11:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-know-the-status-of-service-on/m-p/239297#M201108</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-04-29T01:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: AMBARI REST API + how to know the status of service on specific host</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-know-the-status-of-service-on/m-p/239298#M201109</link>
      <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="http://michael%20bronson/" target="_blank"&gt;&lt;EM&gt;@Michael Bronson&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Any updates?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 22:16:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-know-the-status-of-service-on/m-p/239298#M201109</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-04-30T22:16:02Z</dc:date>
    </item>
  </channel>
</rss>

