<?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 change Ranger database in sandbox in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-Ranger-database-in-sandbox/m-p/131709#M34837</link>
    <description>&lt;P&gt;Below are the steps to configure Ranger with PostgreSQL,&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_Ranger_Install_Guide/content/configuring_postgresql_for_ranger.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_Ranger_Install_Guide/content/configuring_postgresql_for_ranger.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jul 2016 11:03:16 GMT</pubDate>
    <dc:creator>mkumar13</dc:creator>
    <dc:date>2016-07-18T11:03:16Z</dc:date>
    <item>
      <title>How to change Ranger database in sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-Ranger-database-in-sandbox/m-p/131708#M34836</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;I need to change the Ranger database to PostgreSQL for a Proof Of Concept in the Sandbox, so I ran /usr/hdp/current/ranger-admin.setup.sh, which failed due to what due to the inability to connect to the PostgreSQL as root.&lt;/P&gt;&lt;PRE&gt;2016-07-15 13:34:22,906  [JISQL] /usr/lib/jvm/java/bin/java -cp /usr/share/java/postgresql-jdbc.jar:/usr/hdp/2.4.0.0-169/ranger-admin/jisql/lib/* org.apache.util.sql.Jisql -driver postgresql -cstring jdbc:postgresql://localhost/postgres -u root -p '********' -noheader -trim -c \; -query "SELECT 1;"
SQLException : SQL state: 28000 org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user "root" ErrorCode: 0
&lt;/PRE&gt;&lt;P&gt;I tried creating a superuser rangerdba in PostgreSQL and running the &lt;EM&gt;setup.sh&lt;/EM&gt; with it and ended up with this &lt;EM&gt;pg_hba.conf, &lt;/EM&gt;which seemed to allow me to load the database&lt;/P&gt;&lt;PRE&gt;# "local" is for Unix domain socket connections only
local   all   postgres                               ident
# IPv4 local connections:
host    all   postgres         127.0.0.1/32          ident
host    postgres   root,rangerdba,rangeradmin         127.0.0.1/32          md5
host    ranger   root,rangerdba,rangeradmin         127.0.0.1/32          md5
host    ranger_audit   root,rangerdba,rangeradmin,rangerlogger         127.0.0.1/32          md5
# IPv6 local connections:
host    all   postgres         ::1/128               ident&lt;/PRE&gt;&lt;P&gt;However, the setup still does not complete successfully, it fails applying the &lt;EM&gt;PatchPasswordEncryption_J10001&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;2016-07-14 21:51:58,319  [I] java patch PatchPasswordEncryption_J10001 is being applied..
[EL Severe]: 2016-07-14 21:52:37.343--ServerSession(1446840711)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20131113-a7346c6): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Connections could not be acquired from the underlying database!
Error Code: 0
[EL Severe]: ejb: 2016-07-14 21:52:37.363--ServerSession(1446840711)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20131113-a7346c6): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Connections could not be acquired from the underlying database!
Error Code: 0
2016-07-14 21:52:37,498  [E] java patch PatchPasswordEncryption_J10001 failed&lt;/PRE&gt;&lt;P&gt;My question is, how can I switch the Ranger database to PostgreSQL? TIA.&lt;/P&gt;&lt;P&gt;-aaron&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 20:48:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-Ranger-database-in-sandbox/m-p/131708#M34836</guid>
      <dc:creator>aaron_stromas</dc:creator>
      <dc:date>2016-07-15T20:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to change Ranger database in sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-Ranger-database-in-sandbox/m-p/131709#M34837</link>
      <description>&lt;P&gt;Below are the steps to configure Ranger with PostgreSQL,&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_Ranger_Install_Guide/content/configuring_postgresql_for_ranger.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_Ranger_Install_Guide/content/configuring_postgresql_for_ranger.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 11:03:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-Ranger-database-in-sandbox/m-p/131709#M34837</guid>
      <dc:creator>mkumar13</dc:creator>
      <dc:date>2016-07-18T11:03:16Z</dc:date>
    </item>
  </channel>
</rss>

