<?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: how to verify by API all services that are stop in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-verify-by-API-all-services-that-are-stop/m-p/223043#M66978</link>
    <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;Jay SenSharma&lt;/A&gt; did you saw my previos question ? (https://community.hortonworks.com/questions/127804/ambari-vlaue-from-ambari-gui-is-diff-from-the-conf.html)&lt;/P&gt;</description>
    <pubDate>Sun, 20 Aug 2017 15:42:47 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2017-08-20T15:42:47Z</dc:date>
    <item>
      <title>how to verify by API all services that are stop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-verify-by-API-all-services-that-are-stop/m-p/223041#M66976</link>
      <description>&lt;P&gt;we have Ambari cluster version 2.5&lt;/P&gt;&lt;P&gt;how to verify by API all services that are stop ( not started )&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2017 14:58:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-verify-by-API-all-services-that-are-stop/m-p/223041#M66976</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-20T14:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to verify by API all services that are stop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-verify-by-API-all-services-that-are-stop/m-p/223042#M66977</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To list all the service status&lt;/P&gt;&lt;PRE&gt;#  curl -i --user admin:admin -i -H 'X-Requested-By: ambari' -X GET &lt;A href="http://localhost:8080/api/v1/clusters/Sandbox/services?fields=ServiceInfo/state" target="_blank"&gt;http://localhost:8080/api/v1/clusters/Sandbox/services?fields=ServiceInfo/state&lt;/A&gt; | grep -A 1 'service_name'&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;If you want to see only the services that are stopped (means in INSTALLED state) then you can try the following command:&lt;/P&gt;&lt;PRE&gt;# curl -i --user admin:admin -i -H 'X-Requested-By: ambari' -X GET &lt;A href="http://localhost:8080/api/v1/clusters/Sandbox/services?fields=ServiceInfo/state" target="_blank"&gt;http://localhost:8080/api/v1/clusters/Sandbox/services?fields=ServiceInfo/state&lt;/A&gt; | grep -B 1 'INSTALLED'&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# curl -i --user admin:admin -i -H 'X-Requested-By: ambari' -X GET &lt;A href="http://localhost:8080/api/v1/clusters/Sandbox/services?fields=ServiceInfo/state" target="_blank"&gt;http://localhost:8080/api/v1/clusters/Sandbox/services?fields=ServiceInfo/state&lt;/A&gt; | grep -B 1 'INSTALLED'

        "service_name" : "AMBARI_INFRA",
        "state" : "INSTALLED"
--
        "service_name" : "AMBARI_METRICS",
        "state" : "INSTALLED"
--
        "service_name" : "ATLAS",
        "state" : "INSTALLED"
--
        "service_name" : "FALCON",
        "state" : "INSTALLED"
--
        "service_name" : "HBASE",
        "state" : "INSTALLED"
--
        "service_name" : "HDFS",
        "state" : "INSTALLED"
--
        "service_name" : "KAFKA",
        "state" : "INSTALLED"
--
        "service_name" : "KNOX",
        "state" : "INSTALLED"
--
        "service_name" : "LOGSEARCH",
        "state" : "INSTALLED"
--
        "service_name" : "PIG",
        "state" : "INSTALLED"
--
        "service_name" : "SLIDER",
        "state" : "INSTALLED"
--
        "service_name" : "SMARTSENSE",
        "state" : "INSTALLED"
--
        "service_name" : "SQOOP",
        "state" : "INSTALLED"
--
        "service_name" : "STORM",
        "state" : "INSTALLED"
--
        "service_name" : "TEZ",
        "state" : "INSTALLED"
--
        "service_name" : "ZOOKEEPER",
        "state" : "INSTALLED"
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Here please replace the following:&lt;/P&gt;&lt;P&gt;1. "localhost" :  with the Ambari FQDN&lt;/P&gt;&lt;P&gt;2. 8080 : with ambari port.&lt;/P&gt;&lt;P&gt;3. Sandbox : With cluster Name.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reference:  &lt;/STRONG&gt;&lt;A href="https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=41812517" target="_blank"&gt;https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=41812517&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2017 15:17:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-verify-by-API-all-services-that-are-stop/m-p/223042#M66977</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-20T15:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to verify by API all services that are stop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-verify-by-API-all-services-that-are-stop/m-p/223043#M66978</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;Jay SenSharma&lt;/A&gt; did you saw my previos question ? (https://community.hortonworks.com/questions/127804/ambari-vlaue-from-ambari-gui-is-diff-from-the-conf.html)&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2017 15:42:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-verify-by-API-all-services-that-are-stop/m-p/223043#M66978</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-20T15:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to verify by API all services that are stop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-verify-by-API-all-services-that-are-stop/m-p/223044#M66979</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;/A&gt;   Just updated the other thread.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2017 16:44:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-verify-by-API-all-services-that-are-stop/m-p/223044#M66979</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-20T16:44:00Z</dc:date>
    </item>
  </channel>
</rss>

