<?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 if some service installed on ambari cluster by API in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-verify-if-some-service-installed-on-ambari-cluster-by/m-p/200925#M162940</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; Perhaps you can use services rest api to check like this:&lt;/P&gt;&lt;P&gt;curl -iv -u admin -X GET &lt;A href="http://AMBARI_HOST:8080/api/v1/clusters/CLUSTER_NAME/services/KAFKA" target="_blank"&gt;http://AMBARI_HOST:8080/api/v1/clusters/CLUSTER_NAME/services/KAFKA&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If service is not installed you will received a response indicating resource does not exist.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.&lt;/P&gt;</description>
    <pubDate>Wed, 23 May 2018 02:25:27 GMT</pubDate>
    <dc:creator>falbani</dc:creator>
    <dc:date>2018-05-23T02:25:27Z</dc:date>
    <item>
      <title>how to verify if some service installed on ambari cluster by API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-verify-if-some-service-installed-on-ambari-cluster-by/m-p/200921#M162936</link>
      <description>&lt;P&gt;we want to know if service exist in ambari cluster by API&lt;/P&gt;&lt;P&gt;is any way to know that? by API&lt;/P&gt;&lt;P&gt;for example - we want to know if KAFKA service exsist in ambari cluster&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 21:24:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-verify-if-some-service-installed-on-ambari-cluster-by/m-p/200921#M162936</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-05-22T21:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to verify if some service installed on ambari cluster by API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-verify-if-some-service-installed-on-ambari-cluster-by/m-p/200922#M162937</link>
      <description>&lt;P&gt;Following call we do, if kafka does not exist you will get status 404.&lt;/P&gt;&lt;P&gt;curl --user admin -sS -G "http://ambari_server_here/api/v1/clusters/CLUSTERNAME_HERE/services/KAFKA"&lt;/P&gt;&lt;P&gt;API resource:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/index.md" target="_blank"&gt;https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/index.md&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 01:02:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-verify-if-some-service-installed-on-ambari-cluster-by/m-p/200922#M162937</guid>
      <dc:creator>umair_khan</dc:creator>
      <dc:date>2018-05-23T01:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to verify if some service installed on ambari cluster by API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-verify-if-some-service-installed-on-ambari-cluster-by/m-p/200923#M162938</link>
      <description>&lt;P&gt;this API withpout passord ?&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 01:10:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-verify-if-some-service-installed-on-ambari-cluster-by/m-p/200923#M162938</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-05-23T01:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to verify if some service installed on ambari cluster by API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-verify-if-some-service-installed-on-ambari-cluster-by/m-p/200924#M162939</link>
      <description>&lt;P&gt;how to add the password - admin in the API?&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 01:17:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-verify-if-some-service-installed-on-ambari-cluster-by/m-p/200924#M162939</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-05-23T01:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to verify if some service installed on ambari cluster by API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-verify-if-some-service-installed-on-ambari-cluster-by/m-p/200925#M162940</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; Perhaps you can use services rest api to check like this:&lt;/P&gt;&lt;P&gt;curl -iv -u admin -X GET &lt;A href="http://AMBARI_HOST:8080/api/v1/clusters/CLUSTER_NAME/services/KAFKA" target="_blank"&gt;http://AMBARI_HOST:8080/api/v1/clusters/CLUSTER_NAME/services/KAFKA&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If service is not installed you will received a response indicating resource does not exist.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 02:25:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-verify-if-some-service-installed-on-ambari-cluster-by/m-p/200925#M162940</guid>
      <dc:creator>falbani</dc:creator>
      <dc:date>2018-05-23T02:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to verify if some service installed on ambari cluster by API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-verify-if-some-service-installed-on-ambari-cluster-by/m-p/200926#M162941</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; For the password you need to send the basic authorization header like this&lt;/P&gt;&lt;P&gt;-H 'Authorization: Basic XXXXXXX'&lt;/P&gt;&lt;P&gt;Following link shows how to create the header using most popular languages:&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/brandonmwest/a2632d0a65088a20c00a" target="_blank"&gt;https://gist.github.com/brandonmwest/a2632d0a65088a20c00a&lt;/A&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 02:31:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-verify-if-some-service-installed-on-ambari-cluster-by/m-p/200926#M162941</guid>
      <dc:creator>falbani</dc:creator>
      <dc:date>2018-05-23T02:31:55Z</dc:date>
    </item>
  </channel>
</rss>

