<?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-server setup searches postgres in wrong location in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-searches-postgres-in-wrong-location/m-p/214407#M69012</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45333/antonp.html" nodeid="45333"&gt;@Anton P&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Did it work?&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45333/antonp.html" nodeid="45333"&gt;&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Mon, 09 Oct 2017 23:05:15 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-10-09T23:05:15Z</dc:date>
    <item>
      <title>Ambari-server setup searches postgres in wrong location</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-searches-postgres-in-wrong-location/m-p/214404#M69009</link>
      <description>&lt;P&gt;i am installing ambari-server with RHEL7.3 but unfortunately it fails, when I run it with verbose: `ambari-server setup -v` I am getting the following error:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;  File "/usr/sbin/ambari-server.py", line 951, in &amp;lt;module&amp;gt;&lt;BR /&gt;  mainBody()&lt;BR /&gt;  File "/usr/sbin/ambari-server.py", line 921, in mainBody&lt;BR /&gt;  main(options, args, parser)&lt;BR /&gt;  File "/usr/sbin/ambari-server.py", line 873, in main&lt;BR /&gt;  action_obj.execute()&lt;BR /&gt;  File "/usr/sbin/ambari-server.py", line 78, in execute&lt;BR /&gt;  self.fn(*self.args, **self.kwargs)&lt;BR /&gt;  File "/usr/lib/python2.6/site-packages/ambari_server/serverSetup.py", line 1144, in setup&lt;BR /&gt;  _setup_database(options)&lt;BR /&gt;  File "/usr/lib/python2.6/site-packages/ambari_server/serverSetup.py", line 960, in _setup_database&lt;BR /&gt;  dbmsAmbari.setup_database()&lt;BR /&gt;  File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration.py", line 150, in setup_database&lt;BR /&gt;  self._setup_local_database()&lt;BR /&gt;  File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration_linux.py", line 479, in _setup_local_database&lt;BR /&gt;  retcode, out, err = self._configure_postgres()&lt;BR /&gt;  File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration_linux.py", line 748, in _configure_postgres&lt;BR /&gt;  PGConfig._configure_pg_hba_postgres_user()&lt;BR /&gt;  File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration_linux.py", line 727, in _configure_pg_hba_postgres_user&lt;BR /&gt;  pg_hba_conf_file_content_in = sudo.read_file(PGConfig.PG_HBA_CONF_FILE)&lt;BR /&gt;  File "/usr/lib/python2.6/site-packages/resource_management/core/sudo.py", line 144, in read_file&lt;BR /&gt;  with open(filename, "rb") as fp:&lt;BR /&gt;IOError: [Errno 2] No such file or directory: '/var/lib/pgsql/data/pg_hba.conf'&lt;/P&gt;&lt;P&gt;As you can see Ambari searches the conf file in '/var/lib/pgsql/data/pg_hba.conf' where its actual location is: '/var/lib/pgsql/9.2/data/pg_hba.conf'&lt;/P&gt;&lt;P&gt;I couldn't find any Ambari config for specifying that path, any help would be really appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 14:41:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-searches-postgres-in-wrong-location/m-p/214404#M69009</guid>
      <dc:creator>antonp</dc:creator>
      <dc:date>2017-10-05T14:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari-server setup searches postgres in wrong location</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-searches-postgres-in-wrong-location/m-p/214405#M69010</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45333/antonp.html" nodeid="45333"&gt;@Anton P&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you a re using Non Default Postgres (here we see that you are using Postgres 9.5) in that case while doing the ambari-server setup you MUST choose the &lt;STRONG&gt;Option [4] &lt;/STRONG&gt;PostgreSQL  Instead of Option 1 (Embedded)&lt;/P&gt;&lt;PRE&gt;Enter advanced database configuration [y/n] (n)? y
Configuring database...
==============================================================================
Choose one of the following options:
[1] - PostgreSQL (Embedded)
[2] - Oracle
[3] - MySQL
[4] - PostgreSQL
[5] - Microsoft SQL Server (Tech Preview)
[6] - SQL Anywhere&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Also if you want to use Non Default Postgres then you should configre it prior to setup ambari as : &lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.2.0/bk_ambari-administration/content/using_ambari_with_postgresql.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.2.0/bk_ambari-administration/content/using_ambari_with_postgresql.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 15:04:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-searches-postgres-in-wrong-location/m-p/214405#M69010</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-05T15:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari-server setup searches postgres in wrong location</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-searches-postgres-in-wrong-location/m-p/214406#M69011</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45333/antonp.html" nodeid="45333"&gt;@Anton P&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also you should refer to the Support Matrics if you are planning to move to production with this version of Postgres:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE:    Database Requirement    &lt;/STRONG&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.2/bk_support-matrices/content/ch_matrices-ambari.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.2/bk_support-matrices/content/ch_matrices-ambari.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;*** Use of an existing PostgreSQL 9.4 is only supported with HDP 2.5 or later.&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45333/antonp.html" nodeid="45333"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 15:15:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-searches-postgres-in-wrong-location/m-p/214406#M69011</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-05T15:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari-server setup searches postgres in wrong location</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-searches-postgres-in-wrong-location/m-p/214407#M69012</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45333/antonp.html" nodeid="45333"&gt;@Anton P&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Did it work?&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45333/antonp.html" nodeid="45333"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 23:05:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-searches-postgres-in-wrong-location/m-p/214407#M69012</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-09T23:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari-server setup searches postgres in wrong location</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-searches-postgres-in-wrong-location/m-p/214408#M69013</link>
      <description>&lt;P&gt;It was exactly the issue, only the version I had installed is 9.2. &lt;/P&gt;&lt;P&gt;I followed the instructions for the pre-installed database and it worked perfectly.&lt;/P&gt;&lt;P&gt;Thanks alot.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 19:06:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-searches-postgres-in-wrong-location/m-p/214408#M69013</guid>
      <dc:creator>antonp</dc:creator>
      <dc:date>2017-10-10T19:06:21Z</dc:date>
    </item>
  </channel>
</rss>

