<?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 what is the right API to stop ambari METRICS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-the-right-API-to-stop-ambari-METRICS/m-p/198370#M76514</link>
    <description>&lt;P&gt;I am using in my bash script the following API in order to stop the ambari METRICS &lt;/P&gt;&lt;PRE&gt;curl -u $USER:$PASSWD -i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"$METRICS_SERVICE_ACTION AMBARI_METRICS via REST"}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}' &lt;A href="http://localhost:8080/api/v1/clusters/hdp/services/AMBARI_METRICS" target="_blank" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/api/v1/clusters/hdp/services/AMBARI_METRICS&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt; 
 the problem is that  &lt;STRONG&gt;Metrics Collector&lt;/STRONG&gt; not stopped and also Metrics Monitor on one of the workers machine &lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;so actually ambari METRICS was stop partially&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;
 my question is 
 dose my syntax to stop the ambari metrics is the right syntax? &lt;/P&gt;&lt;P&gt; second
 can we force the Metrics Monitor to stop ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="67392-capture.png" style="width: 716px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17772i83071039435D2AD6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="67392-capture.png" alt="67392-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 06:09:37 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2019-08-18T06:09:37Z</dc:date>
    <item>
      <title>what is the right API to stop ambari METRICS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-the-right-API-to-stop-ambari-METRICS/m-p/198370#M76514</link>
      <description>&lt;P&gt;I am using in my bash script the following API in order to stop the ambari METRICS &lt;/P&gt;&lt;PRE&gt;curl -u $USER:$PASSWD -i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"$METRICS_SERVICE_ACTION AMBARI_METRICS via REST"}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}' &lt;A href="http://localhost:8080/api/v1/clusters/hdp/services/AMBARI_METRICS" target="_blank" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/api/v1/clusters/hdp/services/AMBARI_METRICS&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt; 
 the problem is that  &lt;STRONG&gt;Metrics Collector&lt;/STRONG&gt; not stopped and also Metrics Monitor on one of the workers machine &lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;so actually ambari METRICS was stop partially&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;
 my question is 
 dose my syntax to stop the ambari metrics is the right syntax? &lt;/P&gt;&lt;P&gt; second
 can we force the Metrics Monitor to stop ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="67392-capture.png" style="width: 716px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17772i83071039435D2AD6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="67392-capture.png" alt="67392-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 06:09:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-the-right-API-to-stop-ambari-METRICS/m-p/198370#M76514</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-08-18T06:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: what is the right API to stop ambari METRICS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-the-right-API-to-stop-ambari-METRICS/m-p/198371#M76515</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;Try this&lt;/P&gt;&lt;PRE&gt;curl -u $USER:$PASSWD -i -H 'X-Requested-By: ambari'-X PUT -d '{"RequestInfo":{"context":"_PARSE_.STOP.AMBARI_METRICS","operation_level":{"level":"SERVICE","cluster_name":"hdp","service_name":"AMBARI_METRICS"}},"Body":{"ServiceInfo":{"state":"INSTALLED"}}}' &lt;A href="http://localhost:8080/api/v1/clusters/hdp/services/AMBARI_METRICS" target="_blank"&gt;http://localhost:8080/api/v1/clusters/hdp/services/AMBARI_METRICS&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;Make sure that stop operation is not failed. You can check the operations in ambari UI. &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 22:46:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-the-right-API-to-stop-ambari-METRICS/m-p/198371#M76515</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2018-03-27T22:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: what is the right API to stop ambari METRICS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-the-right-API-to-stop-ambari-METRICS/m-p/198372#M76516</link>
      <description>&lt;P&gt;I tried your syntax but we get:&lt;/P&gt;&lt;PRE&gt;curl: (6) Could not resolve host: PUT; Unknown error
HTTP/1.1 400 Bad Request
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=5u0mvfkjcd6v1pa1v5apjaymk;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
User: admin
Content-Type: text/plain
Content-Length: 131
Server: Jetty(8.1.19.v20160209)
{
  "status" : 400,
  "message" : "Invalid desired state only INIT state allowed during creation, providedDesiredState=INSTALLED"&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Mar 2018 23:02:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-the-right-API-to-stop-ambari-METRICS/m-p/198372#M76516</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-03-27T23:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: what is the right API to stop ambari METRICS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-the-right-API-to-stop-ambari-METRICS/m-p/198373#M76517</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;My bad. A space was missing between header and -X put. Use this&lt;/P&gt;&lt;PRE&gt;curl -u $USER:$PASSWD -i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo":{"context":"_PARSE_.STOP.AMBARI_METRICS","operation_level":{"level":"SERVICE","cluster_name":"hdp","service_name":"AMBARI_METRICS"}},"Body":{"ServiceInfo":{"state":"INSTALLED"}}}' &lt;A href="http://localhost:8080/api/v1/clusters/hdp/services/AMBARI_METRICS" target="_blank"&gt;http://localhost:8080/api/v1/clusters/hdp/services/AMBARI_METRICS&lt;/A&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Mar 2018 23:14:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-the-right-API-to-stop-ambari-METRICS/m-p/198373#M76517</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2018-03-27T23:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: what is the right API to stop ambari METRICS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-the-right-API-to-stop-ambari-METRICS/m-p/198374#M76518</link>
      <description>&lt;P&gt;now we have the output  , its ok&lt;/P&gt;&lt;PRE&gt;HTTP/1.1 202 Accepted
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=1sn5tlp90xkn81kp3n34hterju;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
User: admin
Content-Type: text/plain
Vary: Accept-Encoding, User-Agent
Content-Length: 135
Server: Jetty(8.1.19.v20160209)
{
  "href" : "http://localhost:8080/api/v1/clusters/hdp/requests/64",
  "Requests" : {
    "id" : 64,
    "status" : "Accepted"
  }&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Mar 2018 23:17:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-the-right-API-to-stop-ambari-METRICS/m-p/198374#M76518</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-03-27T23:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: what is the right API to stop ambari METRICS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-the-right-API-to-stop-ambari-METRICS/m-p/198375#M76519</link>
      <description>&lt;P&gt;@Aditya what is the syntax for ambari metrics start ?&lt;/P&gt;&lt;H1&gt;&lt;/H1&gt;</description>
      <pubDate>Tue, 27 Mar 2018 23:19:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-the-right-API-to-stop-ambari-METRICS/m-p/198375#M76519</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-03-27T23:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: what is the right API to stop ambari METRICS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-the-right-API-to-stop-ambari-METRICS/m-p/198376#M76520</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;This is the curl call for start&lt;/P&gt;&lt;PRE&gt;curl -u $USER:$PASSWD -i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo":{"context":"_PARSE_.START.AMBARI_METRICS","operation_level":{"level":"SERVICE","cluster_name":"hdp","service_name":"AMBARI_METRICS"}},"Body":{"ServiceInfo":{"state":"STARTED"}}}' &lt;A href="http://localhost:8080/api/v1/clusters/hdp/services/AMBARI_METRICS" target="_blank"&gt;http://localhost:8080/api/v1/clusters/hdp/services/AMBARI_METRICS&lt;/A&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Mar 2018 23:24:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-the-right-API-to-stop-ambari-METRICS/m-p/198376#M76520</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2018-03-27T23:24:48Z</dc:date>
    </item>
  </channel>
</rss>

