<?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: Ambari install without derby in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131757#M27241</link>
    <description>&lt;P&gt;Please point me to the documentation for setting up PostgreSQL for Oozie.&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2016 23:23:44 GMT</pubDate>
    <dc:creator>Michel_Brown</dc:creator>
    <dc:date>2016-05-05T23:23:44Z</dc:date>
    <item>
      <title>Ambari install without derby</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131751#M27235</link>
      <description>&lt;P&gt;What is the recommended way of installing HDP 2.3 with Ambari 2.2.1 and not use Derby?&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 01:24:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131751#M27235</guid>
      <dc:creator>Miche_Brown</dc:creator>
      <dc:date>2016-05-05T01:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari install without derby</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131752#M27236</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10265/michebrown.html" nodeid="10265"&gt;@Michel Brown&lt;/A&gt;, here is the HDP documentation for using non-default databases in Ambari.&lt;/P&gt;&lt;P&gt;These are for Ambari 2.2.1.0:
&lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_ambari_reference_guide/content/_using_non-default_databases_-_ambari.html"&gt;Using Non-Default Databases - Ambari&lt;/A&gt; &amp;lt;- For Ambari Server
&lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_ambari_reference_guide/content/ch_amb_ref_using_non_default_databases.html"&gt;Using Non-Default Databases&lt;/A&gt; &amp;lt;- For other HDP services&lt;/P&gt;&lt;P&gt;We currently use Postgres as our backend DB for all of our services.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 02:42:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131752#M27236</guid>
      <dc:creator>Jonathan_M_Maes</dc:creator>
      <dc:date>2016-05-05T02:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari install without derby</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131753#M27237</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10265/michebrown.html" nodeid="10265"&gt;@Michel Brown&lt;/A&gt; Ambari doesn't need Derby, by default it uses Postgres database but if you want to use custom databases i.e. MySQL, Oracle etc. refer the documentation which &lt;A rel="user" href="https://community.cloudera.com/users/689/jonathanmmaestas.html" nodeid="689"&gt;@Jon Maestas&lt;/A&gt; has pointed you to.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 03:20:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131753#M27237</guid>
      <dc:creator>pardeep_kumar</dc:creator>
      <dc:date>2016-05-05T03:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari install without derby</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131754#M27238</link>
      <description>&lt;P&gt;At the end of the Ambari configuration during an HDP 2.3 install Ambari puts up a window that says you should not use Derby for an HA installation and shows you the options for other choices.  However it appears that it is left to the user to setup those other databases.  Is that just a misunderstanding on my part?&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 06:40:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131754#M27238</guid>
      <dc:creator>Michel_Brown</dc:creator>
      <dc:date>2016-05-05T06:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari install without derby</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131755#M27239</link>
      <description>&lt;P&gt;Yes you are correct, database setup has to be done by user unless using default embedded postgres database.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 13:21:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131755#M27239</guid>
      <dc:creator>pardeep_kumar</dc:creator>
      <dc:date>2016-05-05T13:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari install without derby</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131756#M27240</link>
      <description>&lt;P&gt;That Derby message is for oozie. Ambari by default picks derby for oozie and warns not to use it in production or HA situations. &lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 13:24:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131756#M27240</guid>
      <dc:creator>ravi1</dc:creator>
      <dc:date>2016-05-05T13:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari install without derby</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131757#M27241</link>
      <description>&lt;P&gt;Please point me to the documentation for setting up PostgreSQL for Oozie.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 23:23:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131757#M27241</guid>
      <dc:creator>Michel_Brown</dc:creator>
      <dc:date>2016-05-05T23:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari install without derby</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131758#M27242</link>
      <description>&lt;P&gt;Documentation for setting up oozie with postgres is &lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_ambari_reference_guide/content/_using_oozie_with_postgresql.html"&gt;here&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 23:55:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131758#M27242</guid>
      <dc:creator>ravi1</dc:creator>
      <dc:date>2016-05-05T23:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari install without derby</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131759#M27243</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/10265/michebrown.html"&gt;Michel Brown&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When install a test cluster, normally I would setup a MySQL instance to use for Ambari, Hive Metastore, oozie and Ranger. Below are the script I used to setup the process and most of them are copied from the document where you could find more details. All script are tested on centod6.5&lt;/P&gt;&lt;P&gt;Install MySQL before Ambari installation&lt;/P&gt;&lt;PRE&gt;wget &lt;A href="http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm" target="_blank"&gt;http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm&lt;/A&gt;
rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum -y install mysql mysql-server mysql-libs mysql-connector-java*&lt;/PRE&gt;&lt;P&gt;After After &lt;/P&gt;&lt;P&gt;After Ambari installation, setup the users in MySQL for Ambari, Hive, Oozie and Ranger&lt;/P&gt;&lt;PRE&gt;mysql -u root -p

CREATE USER 'ambari'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'localhost';
CREATE USER 'ambari'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'%';
FLUSH PRIVILEGES;
CREATE DATABASE ambari;

CREATE USER 'hive'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'hive'@'localhost';
CREATE USER 'hive'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'hive'@'%';
FLUSH PRIVILEGES;
CREATE DATABASE hive;

CREATE USER 'oozie'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'oozie'@'%';
FLUSH PRIVILEGES;
CREATE DATABASE oozie;

CREATE USER 'rangerdba'@'localhost' IDENTIFIED BY 'rangerdba';
GRANT ALL PRIVILEGES ON *.* TO 'rangerdba'@'localhost';
CREATE USER 'rangerdba'@'%' IDENTIFIED BY 'rangerdba';
GRANT ALL PRIVILEGES ON *.* TO 'rangerdba'@'%';
GRANT ALL PRIVILEGES ON *.* TO 'rangerdba'@'localhost' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'rangerdba'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;

mysql -u root -p ambari &amp;lt; /var/lib/ambari-server/resources/Ambari-DDL-MySQL-CREATE.sql
&lt;/PRE&gt;&lt;P&gt;
During Ambari setup after install Ambari server, choose not to used default database and point to the MySQL instance and setup java jdbc connector&lt;/P&gt;&lt;PRE&gt;ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar&lt;/PRE&gt;
&lt;P&gt;During Ambari install wizard for HDP, choose existing MySQL for Hive and Oozie and point to the MySQL instance you setup.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 00:12:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-install-without-derby/m-p/131759#M27243</guid>
      <dc:creator>qiwang</dc:creator>
      <dc:date>2016-05-06T00:12:37Z</dc:date>
    </item>
  </channel>
</rss>

