<?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 check if specific set of component is installed on HDP (without ambari UI) ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-specific-set-of-component-is-installed-on/m-p/196283#M83912</link>
    <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/222587/how-to-check-if-specific-set-of-component-is-insta.html?childToView=222590#"&gt;@Vivek Singh&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Unfortunately that information isn't in zookeeper, so we can't get it from there unless you write the information to zookeeper yourself (the solution might get overly complicated now). If you really must avoid REST you could try to query the ambari database to list the installed services for example like so;&lt;/P&gt;&lt;PRE&gt;psql ambari -U ambari -W -p 5432 -c "select * from clusterservices"&lt;/PRE&gt;</description>
    <pubDate>Mon, 01 Oct 2018 13:47:01 GMT</pubDate>
    <dc:creator>JonathanSneep</dc:creator>
    <dc:date>2018-10-01T13:47:01Z</dc:date>
    <item>
      <title>How to check if specific set of component is installed on HDP (without ambari UI) ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-specific-set-of-component-is-installed-on/m-p/196279#M83908</link>
      <description>&lt;P&gt;We are working on application which contains Spark, hdfs, and kafka. 
We want to deploy this application on &lt;STRONG&gt;existing HDP cluster&lt;/STRONG&gt;. So what would be the best approach/way to deploy this application on HDP in less time. What I want to do is to create some script that will co-ordinate with ambari and findout which component is already installed on existing HDP. For. Ex if some HDP cluster doesnot contain spark then it will automatically download (from hortonwork repo) and configure spark on that HDP cluster otherwise simply load all tasks/jobs.
Can I use zookeeper to detect which service is installed and detect its state (running/stopped/maintainence) ?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 19:24:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-specific-set-of-component-is-installed-on/m-p/196279#M83908</guid>
      <dc:creator>vivek_b3ds</dc:creator>
      <dc:date>2018-09-28T19:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if specific set of component is installed on HDP (without ambari UI) ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-specific-set-of-component-is-installed-on/m-p/196280#M83909</link>
      <description>&lt;P&gt;Have you considered using the &lt;A href="https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/index.md"&gt;Ambari REST API&lt;/A&gt;, or are you concerned with clusters which are not managed by Ambari?&lt;/P&gt;&lt;P&gt;You could use curl to invoke it from your scripts.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 19:47:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-specific-set-of-component-is-installed-on/m-p/196280#M83909</guid>
      <dc:creator>pzampino</dc:creator>
      <dc:date>2018-09-28T19:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if specific set of component is installed on HDP (without ambari UI) ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-specific-set-of-component-is-installed-on/m-p/196281#M83910</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/222587/how-to-check-if-specific-set-of-component-is-insta.html#"&gt;@Vivek Singh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As Phil suggested, REST is a good way to do this. Check all services installed;&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By: ambari"-X GET &lt;A href="http://{your-ambari-server}:8080/api/v1/clusters/{clustername}/services/" target="_blank"&gt;http://{your-ambari-server}:8080/api/v1/clusters/{clustername}/services/&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;Then check the status of a service, for example Spark 2;&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By: ambari" -X GET &lt;A href="http://{your-ambari-server}:8080/api/v1/clusters/{clustername}/services/SPARK2" target="_blank"&gt;http://{your-ambari-server}:8080/api/v1/clusters/{clustername}/services/SPARK2&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;Look for the 'state' from this output, should be showing either 'installed' (stopped) or 'started'.&lt;/P&gt;&lt;P&gt;You can substitute services for components to check on components.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 19:53:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-specific-set-of-component-is-installed-on/m-p/196281#M83910</guid>
      <dc:creator>JonathanSneep</dc:creator>
      <dc:date>2018-09-28T19:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if specific set of component is installed on HDP (without ambari UI) ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-specific-set-of-component-is-installed-on/m-p/196282#M83911</link>
      <description>&lt;P&gt;Is there any way to do the same task using zookeeper ?&lt;/P&gt;</description>
      <pubDate>Sat, 29 Sep 2018 12:31:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-specific-set-of-component-is-installed-on/m-p/196282#M83911</guid>
      <dc:creator>vivek_b3ds</dc:creator>
      <dc:date>2018-09-29T12:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if specific set of component is installed on HDP (without ambari UI) ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-specific-set-of-component-is-installed-on/m-p/196283#M83912</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/222587/how-to-check-if-specific-set-of-component-is-insta.html?childToView=222590#"&gt;@Vivek Singh&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Unfortunately that information isn't in zookeeper, so we can't get it from there unless you write the information to zookeeper yourself (the solution might get overly complicated now). If you really must avoid REST you could try to query the ambari database to list the installed services for example like so;&lt;/P&gt;&lt;PRE&gt;psql ambari -U ambari -W -p 5432 -c "select * from clusterservices"&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Oct 2018 13:47:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-specific-set-of-component-is-installed-on/m-p/196283#M83912</guid>
      <dc:creator>JonathanSneep</dc:creator>
      <dc:date>2018-10-01T13:47:01Z</dc:date>
    </item>
  </channel>
</rss>

