<?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 Ambari setup was already done? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-Ambari-setup-was-already-done/m-p/106608#M21653</link>
    <description>&lt;P&gt;Great thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2016 00:47:02 GMT</pubDate>
    <dc:creator>condla</dc:creator>
    <dc:date>2016-03-03T00:47:02Z</dc:date>
    <item>
      <title>How to check if Ambari setup was already done?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-Ambari-setup-was-already-done/m-p/106605#M21650</link>
      <description>&lt;P&gt;When automating the setup of Ambari, is there an easy way of checking if  "ambari-server setup" was already done, in order to skip this step in a script?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 23:18:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-Ambari-setup-was-already-done/m-p/106605#M21650</guid>
      <dc:creator>condla</dc:creator>
      <dc:date>2016-03-02T23:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if Ambari setup was already done?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-Ambari-setup-was-already-done/m-p/106606#M21651</link>
      <description>&lt;P&gt;Ambari stores the configuration information in /etc/ambari-server/conf/ambari.properties file on Ambari server host. You could check something like below for the jdbc user and database name before invoking "ambari-server setup":&lt;/P&gt;&lt;PRE&gt;cat /etc/ambari-server/conf/ambari.properties  | grep jdbc.user.name
server.jdbc.user.name=&amp;lt;ambari_database_user_name&amp;gt;


cat /etc/ambari-server/conf/ambari.properties  | grep jdbc.database
server.jdbc.database=mysql
server.jdbc.database_name=&amp;lt;database_name&amp;gt;

&lt;/PRE&gt;&lt;P&gt;If the entries exist and match with your environment, the setup was already done&lt;/P&gt;&lt;P&gt;On a fresh Ambari install where "ambari-server setup" is not yet done, this is what you would get:&lt;/P&gt;&lt;PRE&gt;[root@c6409 ~]# cat /etc/ambari-server/conf/ambari.properties  | grep jdbc.user.name
[root@c6409 ~]# echo $?
1
[root@c6409 ~]#
&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Mar 2016 23:31:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-Ambari-setup-was-already-done/m-p/106606#M21651</guid>
      <dc:creator>vsharma</dc:creator>
      <dc:date>2016-03-02T23:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if Ambari setup was already done?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-Ambari-setup-was-already-done/m-p/106607#M21652</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/788/skupstaitis-dunkler.html" nodeid="788"&gt;@Stefan Kupstaitis-Dunkler&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;You could query the Ambari db for table "clusters" for eg.&lt;/P&gt;&lt;PRE&gt;mysql&amp;gt; select * from clusters;
+------------+-------------+--------------+--------------+--------------------+---------------+-----------------------+------------------+
| cluster_id | resource_id | cluster_info | cluster_name | provisioning_state | security_type | desired_cluster_state | desired_stack_id |
+------------+-------------+--------------+--------------+--------------------+---------------+-----------------------+------------------+
|          2 |           4 |              | Test       | INSTALLED          | NONE          |                       |                3 |
+------------+-------------+--------------+--------------+--------------------+---------------+-----------------------+------------------+
1 row in set (0.01 sec)
&lt;/PRE&gt;&lt;P&gt;Or using curl get &lt;A href="http://&amp;lt;ambari-server&amp;gt;:8080/api/v1/clusters/C1/" target="_blank"&gt;http://&amp;lt;ambari-server&amp;gt;:8080/api/v1/clusters/C1/&lt;/A&gt; and process.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 00:05:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-Ambari-setup-was-already-done/m-p/106607#M21652</guid>
      <dc:creator>vpoornalingam</dc:creator>
      <dc:date>2016-03-03T00:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if Ambari setup was already done?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-Ambari-setup-was-already-done/m-p/106608#M21653</link>
      <description>&lt;P&gt;Great thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 00:47:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-Ambari-setup-was-already-done/m-p/106608#M21653</guid>
      <dc:creator>condla</dc:creator>
      <dc:date>2016-03-03T00:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if Ambari setup was already done?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-Ambari-setup-was-already-done/m-p/106609#M21654</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/350/vpoornalingam.html" nodeid="350"&gt;@vpoornalingam&lt;/A&gt;! Two options, both of which are more effort than &lt;A rel="user" href="https://community.cloudera.com/users/390/vsharma.html" nodeid="390"&gt;@vsharma&lt;/A&gt;'s options though.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 00:48:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-Ambari-setup-was-already-done/m-p/106609#M21654</guid>
      <dc:creator>condla</dc:creator>
      <dc:date>2016-03-03T00:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if Ambari setup was already done?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-Ambari-setup-was-already-done/m-p/106610#M21655</link>
      <description>&lt;P&gt;This approach actually also checks whether HDP is provisioned whereas the first approach only says Ambari setup stepnis done. Of course from your question, its clear you only need that.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 02:08:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-if-Ambari-setup-was-already-done/m-p/106610#M21655</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-03-03T02:08:46Z</dc:date>
    </item>
  </channel>
</rss>

