<?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: Invoke smoke test and get status using Ambari API in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Invoke-smoke-test-and-get-status-using-Ambari-API/m-p/110134#M16233</link>
    <description>&lt;P&gt;Thank you so much &lt;A rel="user" href="https://community.cloudera.com/users/390/vsharma.html" nodeid="390"&gt;@vsharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;here is the test results &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Smoke
test&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;[root@sandbox ~]# curl -u admin:admin -i -H 'X-Requested-By: ambari' -X POST -d '{"RequestInfo": {"context" :"YARN Service Check","command":"YARN_SERVICE_CHECK"},"Requests/resource_filters":[{"service_name":"YARN"}]}' &lt;A href="http://127.0.0.1:8080/api/v1/clusters/Sandbox/requestsHTTP/1.1" target="_blank"&gt;http://127.0.0.1:8080/api/v1/clusters/Sandbox/requestsHTTP/1.1&lt;/A&gt; 202
AcceptedUser: adminSet-Cookie:
AMBARISESSIONID=1vg24zix87lkmi53hpjl4krvk;Path=/;HttpOnlyExpires: Thu, 01 Jan
1970 00:00:00 GMTContent-Type:
text/plainVary:
Accept-Encoding, User-AgentContent-Length: 137Server:
Jetty(8.1.17.v20150415){  "href" : "http://127.0.0.1:8080/api/v1/clusters/Sandbox/requests/87",  "Requests" : {  "id" : 87,  "status" : "Accepted"  }}[root@sandbox ~]#&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Track
status of above smoke test&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -i -H 'X-Requested-By: ambari' -X GET &lt;A href="http://127.0.0.1:8080/api/v1/clusters/Sandbox/requests/87" target="_blank"&gt;http://127.0.0.1:8080/api/v1/clusters/Sandbox/requests/87&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt; - request number can be found from &lt;A href="http://127.0.0.1:8080/api/v1/clusters/Sandbox/requests" target="_blank"&gt;http://127.0.0.1:8080/api/v1/clusters/Sandbox/requests&lt;/A&gt; url,  we should pickup the last request id to check the status.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2016 12:42:05 GMT</pubDate>
    <dc:creator>KuldeepK</dc:creator>
    <dc:date>2016-02-03T12:42:05Z</dc:date>
    <item>
      <title>Invoke smoke test and get status using Ambari API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Invoke-smoke-test-and-get-status-using-Ambari-API/m-p/110132#M16231</link>
      <description>&lt;P&gt;Is there any way to invoke the smoke test for different HDP components using Ambari API ? also can we check the status of smoke test using API ?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2016 15:42:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Invoke-smoke-test-and-get-status-using-Ambari-API/m-p/110132#M16231</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-01-25T15:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke smoke test and get status using Ambari API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Invoke-smoke-test-and-get-status-using-Ambari-API/m-p/110133#M16232</link>
      <description>&lt;P&gt;Yes, there is a POST API call. Check this link for an example - &lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Running+Service+Checks"&gt;Running-Service-Checks&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The above would return a requestID&lt;/P&gt;&lt;P&gt;You can then track (poll) the status of the service check request using a GET call by passing the requestID returned from above call. Something like below:&lt;/P&gt;&lt;P&gt;&lt;A href="http://c6401.ambari.apache.org:8080/api/v1/clusters/cl1/requests/&amp;lt;requestID&amp;gt;" target="_blank"&gt;http://c6401.ambari.apache.org:8080/api/v1/clusters/cl1/requests/&amp;lt;requestID&amp;gt;&lt;/A&gt;;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2016 16:18:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Invoke-smoke-test-and-get-status-using-Ambari-API/m-p/110133#M16232</guid>
      <dc:creator>vsharma</dc:creator>
      <dc:date>2016-01-25T16:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke smoke test and get status using Ambari API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Invoke-smoke-test-and-get-status-using-Ambari-API/m-p/110134#M16233</link>
      <description>&lt;P&gt;Thank you so much &lt;A rel="user" href="https://community.cloudera.com/users/390/vsharma.html" nodeid="390"&gt;@vsharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;here is the test results &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Smoke
test&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;[root@sandbox ~]# curl -u admin:admin -i -H 'X-Requested-By: ambari' -X POST -d '{"RequestInfo": {"context" :"YARN Service Check","command":"YARN_SERVICE_CHECK"},"Requests/resource_filters":[{"service_name":"YARN"}]}' &lt;A href="http://127.0.0.1:8080/api/v1/clusters/Sandbox/requestsHTTP/1.1" target="_blank"&gt;http://127.0.0.1:8080/api/v1/clusters/Sandbox/requestsHTTP/1.1&lt;/A&gt; 202
AcceptedUser: adminSet-Cookie:
AMBARISESSIONID=1vg24zix87lkmi53hpjl4krvk;Path=/;HttpOnlyExpires: Thu, 01 Jan
1970 00:00:00 GMTContent-Type:
text/plainVary:
Accept-Encoding, User-AgentContent-Length: 137Server:
Jetty(8.1.17.v20150415){  "href" : "http://127.0.0.1:8080/api/v1/clusters/Sandbox/requests/87",  "Requests" : {  "id" : 87,  "status" : "Accepted"  }}[root@sandbox ~]#&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Track
status of above smoke test&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -i -H 'X-Requested-By: ambari' -X GET &lt;A href="http://127.0.0.1:8080/api/v1/clusters/Sandbox/requests/87" target="_blank"&gt;http://127.0.0.1:8080/api/v1/clusters/Sandbox/requests/87&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt; - request number can be found from &lt;A href="http://127.0.0.1:8080/api/v1/clusters/Sandbox/requests" target="_blank"&gt;http://127.0.0.1:8080/api/v1/clusters/Sandbox/requests&lt;/A&gt; url,  we should pickup the last request id to check the status.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 12:42:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Invoke-smoke-test-and-get-status-using-Ambari-API/m-p/110134#M16233</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-02-03T12:42:05Z</dc:date>
    </item>
  </channel>
</rss>

