<?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: API to stop only metrics collector in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/API-to-stop-only-metrics-collector/m-p/198916#M76597</link>
    <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/26229/uribarih.html"&gt;Michael Bronson&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; You will need first to identify the Ambari Service and Component name to be used in the API, this for sure will also bring down the Metrics collector &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin get &lt;A href="http://&amp;lt;AMBARI_SERVER&amp;gt;:8080/api/v1/clusters/&amp;lt;CLUSTER_NAME&amp;gt;/services" target="_blank"&gt;http://&amp;lt;AMBARI_SERVER&amp;gt;:8080/api/v1/clusters/&amp;lt;CLUSTER_NAME&amp;gt;/services&lt;/A&gt; &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Replace the particular service below &amp;lt;&lt;STRONG&gt;Service_name&lt;/STRONG&gt;&amp;gt; with the previous output eg &lt;STRONG&gt;AMBARI_METRICS &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Stop AMBARI_METRICS &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin  -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"Stop service "}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}' &lt;A href="http://&amp;lt;AMBARI_SERVER_HOSTNAME&amp;gt;:8080/api/v1/clusters/&amp;lt;CLUSTER_NAME&amp;gt;/services/&amp;lt;Service_name&amp;gt;" target="_blank"&gt;http://&amp;lt;AMBARI_SERVER_HOSTNAME&amp;gt;:8080/api/v1/clusters/&amp;lt;CLUSTER_NAME&amp;gt;/services/&amp;lt;Service_name&amp;gt;&lt;/A&gt;;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt; The service will stop check the Ambari UI&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hope that helps!!&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Mar 2018 03:11:06 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2018-03-29T03:11:06Z</dc:date>
    <item>
      <title>API to stop only metrics collector</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/API-to-stop-only-metrics-collector/m-p/198915#M76596</link>
      <description>&lt;P&gt;what is the API to stop the &lt;STRONG&gt;Metrics Collector ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I ask this API because the API that should to the ambari metrics some times missed to stop the &lt;/STRONG&gt;&lt;STRONG&gt;Metrics Collector&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="67424-capture.png" style="width: 423px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17731i232B682399E53B30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="67424-capture.png" alt="67424-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 06:04:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/API-to-stop-only-metrics-collector/m-p/198915#M76596</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-08-18T06:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: API to stop only metrics collector</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/API-to-stop-only-metrics-collector/m-p/198916#M76597</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/26229/uribarih.html"&gt;Michael Bronson&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; You will need first to identify the Ambari Service and Component name to be used in the API, this for sure will also bring down the Metrics collector &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin get &lt;A href="http://&amp;lt;AMBARI_SERVER&amp;gt;:8080/api/v1/clusters/&amp;lt;CLUSTER_NAME&amp;gt;/services" target="_blank"&gt;http://&amp;lt;AMBARI_SERVER&amp;gt;:8080/api/v1/clusters/&amp;lt;CLUSTER_NAME&amp;gt;/services&lt;/A&gt; &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Replace the particular service below &amp;lt;&lt;STRONG&gt;Service_name&lt;/STRONG&gt;&amp;gt; with the previous output eg &lt;STRONG&gt;AMBARI_METRICS &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Stop AMBARI_METRICS &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin  -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"Stop service "}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}' &lt;A href="http://&amp;lt;AMBARI_SERVER_HOSTNAME&amp;gt;:8080/api/v1/clusters/&amp;lt;CLUSTER_NAME&amp;gt;/services/&amp;lt;Service_name&amp;gt;" target="_blank"&gt;http://&amp;lt;AMBARI_SERVER_HOSTNAME&amp;gt;:8080/api/v1/clusters/&amp;lt;CLUSTER_NAME&amp;gt;/services/&amp;lt;Service_name&amp;gt;&lt;/A&gt;;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt; The service will stop check the Ambari UI&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hope that helps!!&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 03:11:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/API-to-stop-only-metrics-collector/m-p/198916#M76597</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-03-29T03:11:06Z</dc:date>
    </item>
  </channel>
</rss>

