<?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: PSQLException: FATAL: no pg_hba.conf entry for host &amp;quot;127.0.0.1&amp;quot;, user &amp;quot;ambari&amp;quot;, database &amp;quot;ambari&amp;quot;, SSL off in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PSQLException-FATAL-no-pg-hba-conf-entry-for-host-quot-127-0/m-p/132901#M27351</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/3638/venkatramanann.html" nodeid="3638"&gt;@Venkat ramanann&lt;/A&gt;&lt;P&gt;On your Postgres server, you will need to update your pg_hba.conf file to allow access for the ambari user on the ambari database coming from 127.0.0.1.&lt;/P&gt;&lt;P&gt;Here is the location of our pg_hba.conf file: /data/pghadoop/pg_hba.conf&lt;/P&gt;&lt;P&gt;If its not there, run: find / -name pg_hba.conf&lt;/P&gt;&lt;P&gt;Here is Postgres documentation for configuring this file: &lt;A target="_blank" href="http://www.postgresql.org/docs/9.5/static/auth-pg-hba-conf.html"&gt;http://www.postgresql.org/docs/9.5/static/auth-pg-hba-conf.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is what our pg_hba.conf file has for the ambari user:&lt;/P&gt;&lt;PRE&gt;local  all  ambari trust 
host  all   ambari 0.0.0.0/0  trust 
host  all   ambari ::/0 trust&lt;/PRE&gt;&lt;P&gt;Once you have made these changes, you will need to restart the Postgres server: &lt;/P&gt;&lt;PRE&gt;/etc/init.d/postgresql restart&lt;/PRE&gt;&lt;P&gt;Let me know if you have any other questions.&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2016 21:58:21 GMT</pubDate>
    <dc:creator>Jonathan_M_Maes</dc:creator>
    <dc:date>2016-05-05T21:58:21Z</dc:date>
    <item>
      <title>PSQLException: FATAL: no pg_hba.conf entry for host "127.0.0.1", user "ambari", database "ambari", SSL off</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PSQLException-FATAL-no-pg-hba-conf-entry-for-host-quot-127-0/m-p/132900#M27350</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I'm trying to install ambari 2.2.1. After installed ambari server, i got the error as mentioned below,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error injecting constructor, java.lang.RuntimeException: org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "127.0.0.1", user "ambari", database "ambari", SSL off
  at org.apache.ambari.server.orm.DBAccessorImpl.&amp;lt;init&amp;gt;(DBAccessorImpl.java:77)
  while locating org.apache.ambari.server.orm.DBAccessorImpl
  while locating org.apache.ambari.server.orm.DBAccessor
    for field at org.apache.ambari.server.orm.dao.DaoUtils.dbAccessor(DaoUtils.java:36)
  at org.apache.ambari.server.orm.dao.DaoUtils.class(DaoUtils.java:36)
  while locating org.apache.ambari.server.orm.dao.DaoUtils
    for field at org.apache.ambari.server.orm.dao.HostComponentStateDAO.daoUtils(HostComponentStateDAO.java:39)
  at org.apache.ambari.server.orm.dao.HostComponentStateDAO.class(HostComponentStateDAO.java:39)
  while locating org.apache.ambari.server.orm.dao.HostComponentStateDAO
    for field at org.apache.ambari.server.orm.models.HostComponentSummary.hostComponentStateDao(HostComponentSummary.java:52)
Caused by: java.lang.RuntimeException: org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "127.0.0.1", user "ambari", database "ambari", SSL off&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How to solve this problem, &lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 16:40:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/PSQLException-FATAL-no-pg-hba-conf-entry-for-host-quot-127-0/m-p/132900#M27350</guid>
      <dc:creator>venkatramanann</dc:creator>
      <dc:date>2016-05-05T16:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: PSQLException: FATAL: no pg_hba.conf entry for host "127.0.0.1", user "ambari", database "ambari", SSL off</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PSQLException-FATAL-no-pg-hba-conf-entry-for-host-quot-127-0/m-p/132901#M27351</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3638/venkatramanann.html" nodeid="3638"&gt;@Venkat ramanann&lt;/A&gt;&lt;P&gt;On your Postgres server, you will need to update your pg_hba.conf file to allow access for the ambari user on the ambari database coming from 127.0.0.1.&lt;/P&gt;&lt;P&gt;Here is the location of our pg_hba.conf file: /data/pghadoop/pg_hba.conf&lt;/P&gt;&lt;P&gt;If its not there, run: find / -name pg_hba.conf&lt;/P&gt;&lt;P&gt;Here is Postgres documentation for configuring this file: &lt;A target="_blank" href="http://www.postgresql.org/docs/9.5/static/auth-pg-hba-conf.html"&gt;http://www.postgresql.org/docs/9.5/static/auth-pg-hba-conf.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is what our pg_hba.conf file has for the ambari user:&lt;/P&gt;&lt;PRE&gt;local  all  ambari trust 
host  all   ambari 0.0.0.0/0  trust 
host  all   ambari ::/0 trust&lt;/PRE&gt;&lt;P&gt;Once you have made these changes, you will need to restart the Postgres server: &lt;/P&gt;&lt;PRE&gt;/etc/init.d/postgresql restart&lt;/PRE&gt;&lt;P&gt;Let me know if you have any other questions.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 21:58:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/PSQLException-FATAL-no-pg-hba-conf-entry-for-host-quot-127-0/m-p/132901#M27351</guid>
      <dc:creator>Jonathan_M_Maes</dc:creator>
      <dc:date>2016-05-05T21:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: PSQLException: FATAL: no pg_hba.conf entry for host "127.0.0.1", user "ambari", database "ambari", SSL off</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PSQLException-FATAL-no-pg-hba-conf-entry-for-host-quot-127-0/m-p/132902#M27352</link>
      <description>&lt;P&gt;@ &lt;A href="https://community.hortonworks.com/users/3638/venkatramanann.html"&gt;Venkat ramanann&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;In addition to &lt;A rel="user" href="https://community.cloudera.com/users/689/jonathanmmaestas.html" nodeid="689"&gt;@Jon Maestas&lt;/A&gt; workaround, add the IP address of the host (on which PostgreSQL server is running) to the &lt;STRONG&gt;pg_hba.conf file&lt;/STRONG&gt;&lt;STRONG&gt; &lt;/STRONG&gt;and make sure that the method is set to "&lt;STRONG&gt;trust&lt;/STRONG&gt;". &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;&lt;STRONG&gt;Note: &lt;/STRONG&gt;Replace &amp;lt;ip address&amp;gt; with the IP address of your host to allow connections.&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;# IPv4 local connections: &lt;/P&gt;&lt;P style="margin-left: 80px;"&gt;host     all     all           127.0.0.1/32           md5 &lt;/P&gt;&lt;P style="margin-left: 60px;"&gt;     host     all      all         &amp;lt;ip address&amp;gt;/24       trust&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;# IPv6 local connections:
host    all         all         ::1/128               md5&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;Now, restart postgresql service.&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;For more details, visit &lt;A href="https://confluence.atlassian.com/confkb/confluence-unable-to-connect-to-postgresql-due-to-unconfigured-pg_hba-conf-file-300814422.html"&gt;https://confluence.atlassian.com/confkb/confluence-unable-to-connect-to-postgresql-due-to-unconfigured-pg_hba-conf-file-300814422.html&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;
&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 20:38:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/PSQLException-FATAL-no-pg-hba-conf-entry-for-host-quot-127-0/m-p/132902#M27352</guid>
      <dc:creator>kib</dc:creator>
      <dc:date>2016-07-21T20:38:53Z</dc:date>
    </item>
  </channel>
</rss>

