<?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 setup Ambari with an external Postgresql db with SSL/TLS required in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-setup-Ambari-with-an-external-Postgresql-db-with-SSL/m-p/209449#M81484</link>
    <description>&lt;P&gt;Thanks Eric for your post.&lt;/P&gt;&lt;P&gt;This is &lt;STRONG&gt;useful&lt;/STRONG&gt; and very &lt;STRONG&gt;efficient&lt;/STRONG&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Aug 2018 16:31:42 GMT</pubDate>
    <dc:creator>francois__tizie</dc:creator>
    <dc:date>2018-08-03T16:31:42Z</dc:date>
    <item>
      <title>How to setup Ambari with an external Postgresql db with SSL/TLS required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-setup-Ambari-with-an-external-Postgresql-db-with-SSL/m-p/209446#M81481</link>
      <description>&lt;P&gt;When installing a cluster with a very secure environement you could want to setup an external Postgresql cluster database with HA and a connection pooler like pgbouncer for reducing the impact of opening new sessions on Postgresql.&lt;/P&gt;&lt;P&gt;All the connections should be with SSL/TLS :&lt;/P&gt;&lt;P&gt;Client -&amp;gt; Pgbouncer and Pgbouncer -&amp;gt; Postgresql &lt;/P&gt;&lt;P&gt;The problem was that configuring Ambari with the &lt;STRONG&gt;ambari-server setup&lt;/STRONG&gt; don't give you the oportunity to setup SSL connection and ambari is not able to connect to the database.&lt;/P&gt;&lt;P&gt;You will find this error in the logs :&lt;/P&gt;&lt;PRE&gt;26 Jul 2018 18:56:39,202 ERROR [main] DBAccessorImpl:119 - Error while creating database accessor
org.postgresql.util.PSQLException: ERROR: SSL required
        at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:400)
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:173)
        at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64)
        at org.postgresql.jdbc2.AbstractJdbc2Connection.&amp;lt;init&amp;gt;(AbstractJdbc2Connection.java:138)
        at org.postgresql.jdbc3.AbstractJdbc3Connection.&amp;lt;init&amp;gt;(AbstractJdbc3Connection.java:29)
        at org.postgresql.jdbc3g.AbstractJdbc3gConnection.&amp;lt;init&amp;gt;(AbstractJdbc3gConnection.java:21)
        at org.postgresql.jdbc4.AbstractJdbc4Connection.&amp;lt;init&amp;gt;(AbstractJdbc4Connection.java:31)
        at org.postgresql.jdbc4.Jdbc4Connection.&amp;lt;init&amp;gt;(Jdbc4Connection.java:24)
        at org.postgresql.Driver.makeConnection(Driver.java:410)
        at org.postgresql.Driver.connect(Driver.java:280)
        at java.sql.DriverManager.getConnection(DriverManager.java:664)
        at java.sql.DriverManager.getConnection(DriverManager.java:247)
        at org.apache.ambari.server.orm.DBAccessorImpl.&amp;lt;init&amp;gt;(DBAccessorImpl.java:93)
        at org.apache.ambari.server.orm.DBAccessorImpl$$FastClassByGuice$$86dbc63e.newInstance(&amp;lt;generated&amp;gt;)
        at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
        at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
        at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
        at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
        at com.google.inject.Scopes$1$1.get(Scopes.java:65)
        at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
        at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54)
        at com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53)
        at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110)
        at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:94)
        at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
        at com.google.inject.Scopes$1$1.get(Scopes.java:65)
        at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
        at com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53)
        at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110)
        at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:94)
        at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
        at com.google.inject.Scopes$1$1.get(Scopes.java:65)
        at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
        at com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53)
        at com.google.inject.internal.InjectionRequestProcessor$StaticInjection$1.call(InjectionRequestProcessor.java:116)
        at com.google.inject.internal.InjectionRequestProcessor$StaticInjection$1.call(InjectionRequestProcessor.java:110)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
        at com.google.inject.internal.InjectionRequestProcessor$StaticInjection.injectMembers(InjectionRequestProcessor.java:110)
        at com.google.inject.internal.InjectionRequestProcessor.injectMembers(InjectionRequestProcessor.java:78)
        at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:170)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
        at com.google.inject.Guice.createInjector(Guice.java:95)
        at com.google.inject.Guice.createInjector(Guice.java:72)
        at com.google.inject.Guice.createInjector(Guice.java:62)
        at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:1045)


&lt;/PRE&gt;&lt;P&gt;So, the question is how to setup your ambari server for connecting to the database without desactivating SSL mode ?&lt;/P&gt;&lt;P&gt;Eric.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 21:20:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-setup-Ambari-with-an-external-Postgresql-db-with-SSL/m-p/209446#M81481</guid>
      <dc:creator>eric_deleforter</dc:creator>
      <dc:date>2018-08-01T21:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup Ambari with an external Postgresql db with SSL/TLS required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-setup-Ambari-with-an-external-Postgresql-db-with-SSL/m-p/209447#M81482</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Here is the answer :&lt;/P&gt;&lt;P&gt;After setup your postgresql external database access with ambari-server setup, you have to edit the file /etc/ambari-server/conf/ambari.properties and modify the server.jdbc.url parameter to add the activation of the ssl like this :&lt;/P&gt;&lt;P&gt;server.jdbc.url=jdbc:postgresql://&amp;lt;HOSTNAME&amp;gt;:&amp;lt;PORT&amp;gt;/ambari&lt;STRONG&gt;?ssl=true&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Once done, you are able to start the ambari installation with a SSL connection to your external Postgresql database.&lt;/P&gt;&lt;P&gt;For more information on all the options you could add on the connect string, you have the jdbc.postgresql documentation here :&lt;/P&gt;&lt;P&gt;&lt;A href="https://jdbc.postgresql.org/documentation/head/connect.html#ssl" target="_blank"&gt;https://jdbc.postgresql.org/documentation/head/connect.html#ssl&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 21:26:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-setup-Ambari-with-an-external-Postgresql-db-with-SSL/m-p/209447#M81482</guid>
      <dc:creator>eric_deleforter</dc:creator>
      <dc:date>2018-08-01T21:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup Ambari with an external Postgresql db with SSL/TLS required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-setup-Ambari-with-an-external-Postgresql-db-with-SSL/m-p/209448#M81483</link>
      <description>&lt;P&gt;Great tips &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 23:21:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-setup-Ambari-with-an-external-Postgresql-db-with-SSL/m-p/209448#M81483</guid>
      <dc:creator>bouda_armel_</dc:creator>
      <dc:date>2018-08-02T23:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup Ambari with an external Postgresql db with SSL/TLS required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-setup-Ambari-with-an-external-Postgresql-db-with-SSL/m-p/209449#M81484</link>
      <description>&lt;P&gt;Thanks Eric for your post.&lt;/P&gt;&lt;P&gt;This is &lt;STRONG&gt;useful&lt;/STRONG&gt; and very &lt;STRONG&gt;efficient&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 16:31:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-setup-Ambari-with-an-external-Postgresql-db-with-SSL/m-p/209449#M81484</guid>
      <dc:creator>francois__tizie</dc:creator>
      <dc:date>2018-08-03T16:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup Ambari with an external Postgresql db with SSL/TLS required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-setup-Ambari-with-an-external-Postgresql-db-with-SSL/m-p/209450#M81485</link>
      <description>&lt;P&gt;Tip and top... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 16:32:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-setup-Ambari-with-an-external-Postgresql-db-with-SSL/m-p/209450#M81485</guid>
      <dc:creator>francois__tizie</dc:creator>
      <dc:date>2018-08-03T16:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup Ambari with an external Postgresql db with SSL/TLS required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-setup-Ambari-with-an-external-Postgresql-db-with-SSL/m-p/209451#M81486</link>
      <description>&lt;P&gt;very useful post&lt;/P&gt;&lt;P&gt;thank's Eric &lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 18:15:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-setup-Ambari-with-an-external-Postgresql-db-with-SSL/m-p/209451#M81486</guid>
      <dc:creator>aelmrani</dc:creator>
      <dc:date>2018-08-03T18:15:58Z</dc:date>
    </item>
  </channel>
</rss>

