<?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: ”DBAccessorImpl:119 - Error while creating database accessor” while run command 'ambari-server start' in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/DBAccessorImpl-119-Error-while-creating-database-accessor/m-p/182758#M80608</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/87248/zyann95.html" nodeid="87248"&gt;@Zyann&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please check your DB config .. and make the changes according to the following and then restart postgresql.&lt;/P&gt;&lt;PRE&gt;# grep 'ambari' /var/lib/pgsql/data/pg_hba.conf
local  all  ambari,mapred md5
host  all   ambari,mapred 0.0.0.0/0  md5
host  all   ambari,mapred ::/0 md5&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;If you still face any issue then please share the following details:&lt;/P&gt;&lt;P&gt;1.  /var/lib/pgsql/data/pg_hba.conf&lt;/P&gt;&lt;P&gt;2. Output of the following command:&lt;/P&gt;&lt;PRE&gt;# grep 'jdbc'  /etc/ambari-server/conf/ambari.properties &lt;/PRE&gt;&lt;P&gt;3. Are you able to login to DB using the following command?&lt;/P&gt;&lt;PRE&gt;# psql -U ambari ambari -h yourdatabase.example.com
Password for user ambari: bigdata

ambari=&amp;gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/87248/zyann95.html" nodeid="87248"&gt;&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Thu, 12 Jul 2018 10:12:25 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2018-07-12T10:12:25Z</dc:date>
    <item>
      <title>”DBAccessorImpl:119 - Error while creating database accessor” while run command 'ambari-server start'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/DBAccessorImpl-119-Error-while-creating-database-accessor/m-p/182755#M80605</link>
      <description>&lt;P&gt;&lt;STRONG&gt;while run command "ambari-server start",it get back this error：&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;11 Jul 2018 17:19:47,221 ERROR [main] DBAccessorImpl:119 - Error while creating database accessor
org.postgresql.util.PSQLException: &lt;STRONG&gt;FATAL: password authentication failed for user "ambari"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;it says wrong password for ‘ambari’，but when i setup ambari-server i choose the default option. The default passwd for pg is 'bigdata', and i can login pg . So ,why it prompt wrong passwd？&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 12:16:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/DBAccessorImpl-119-Error-while-creating-database-accessor/m-p/182755#M80605</guid>
      <dc:creator>zyann95</dc:creator>
      <dc:date>2026-04-21T12:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: ”DBAccessorImpl:119 - Error while creating database accessor” while run command 'ambari-server start'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/DBAccessorImpl-119-Error-while-creating-database-accessor/m-p/182756#M80606</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/87248/zyann95.html" nodeid="87248"&gt;@Zyann&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you please check the following files to understand  what password ambari is assuming for the Database?&lt;/P&gt;&lt;PRE&gt;# grep 'server.jdbc.user.passwd' /etc/ambari-server/conf/ambari.properties 
server.jdbc.user.passwd=/etc/ambari-server/conf/password.dat

# cat /etc/ambari-server/conf/password.dat
bigdata&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Also please check if the user is able to access the Database using command line with the mentioned credentials?&lt;/P&gt;&lt;PRE&gt;# psql -U ambari ambari -h yourdatabase.example.com
Password for user ambari: bigdata&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;You should also check your Postgres Setting to verify if it has given access to 'ambari' ?&lt;/P&gt;&lt;PRE&gt;# grep 'ambari' /var/lib/pgsql/data/pg_hba.conf
local  all  ambari,mapred md5
host  all   ambari,mapred 0.0.0.0/0  md5
host  all   ambari,mapred ::/0 md5&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 10:02:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/DBAccessorImpl-119-Error-while-creating-database-accessor/m-p/182756#M80606</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-07-12T10:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: ”DBAccessorImpl:119 - Error while creating database accessor” while run command 'ambari-server start'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/DBAccessorImpl-119-Error-while-creating-database-accessor/m-p/182757#M80607</link>
      <description>&lt;PRE&gt;grep 'server.jdbc.user.passwd' /etc/ambari-server/conf/ambari.properties
server.jdbc.user.passwd=/etc/ambari-server/conf/password.dat

cat /etc/ambari-server/conf/password.dat
bigdata&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Jul 2018 10:07:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/DBAccessorImpl-119-Error-while-creating-database-accessor/m-p/182757#M80607</guid>
      <dc:creator>zyann95</dc:creator>
      <dc:date>2018-07-12T10:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: ”DBAccessorImpl:119 - Error while creating database accessor” while run command 'ambari-server start'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/DBAccessorImpl-119-Error-while-creating-database-accessor/m-p/182758#M80608</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/87248/zyann95.html" nodeid="87248"&gt;@Zyann&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please check your DB config .. and make the changes according to the following and then restart postgresql.&lt;/P&gt;&lt;PRE&gt;# grep 'ambari' /var/lib/pgsql/data/pg_hba.conf
local  all  ambari,mapred md5
host  all   ambari,mapred 0.0.0.0/0  md5
host  all   ambari,mapred ::/0 md5&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;If you still face any issue then please share the following details:&lt;/P&gt;&lt;P&gt;1.  /var/lib/pgsql/data/pg_hba.conf&lt;/P&gt;&lt;P&gt;2. Output of the following command:&lt;/P&gt;&lt;PRE&gt;# grep 'jdbc'  /etc/ambari-server/conf/ambari.properties &lt;/PRE&gt;&lt;P&gt;3. Are you able to login to DB using the following command?&lt;/P&gt;&lt;PRE&gt;# psql -U ambari ambari -h yourdatabase.example.com
Password for user ambari: bigdata

ambari=&amp;gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/87248/zyann95.html" nodeid="87248"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 10:12:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/DBAccessorImpl-119-Error-while-creating-database-accessor/m-p/182758#M80608</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-07-12T10:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: ”DBAccessorImpl:119 - Error while creating database accessor” while run command 'ambari-server start'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/DBAccessorImpl-119-Error-while-creating-database-accessor/m-p/182759#M80609</link>
      <description>&lt;P&gt;thanks，i have solved this problem.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 14:33:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/DBAccessorImpl-119-Error-while-creating-database-accessor/m-p/182759#M80609</guid>
      <dc:creator>zyann95</dc:creator>
      <dc:date>2018-07-12T14:33:24Z</dc:date>
    </item>
  </channel>
</rss>

