<?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 2.6.1.5 setup error on Ubuntu 16 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-2-6-1-5-setup-error-on-Ubuntu-16/m-p/205162#M81093</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/87334/harryli.html" nodeid="87334"&gt;@Harry Li&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is likely the postgresql service was not started.  Try to manually start it and re-run ambari-server setup.&lt;/P&gt;&lt;PRE&gt;service postgresql start&lt;/PRE&gt;</description>
    <pubDate>Wed, 25 Jul 2018 01:27:47 GMT</pubDate>
    <dc:creator>rlevas</dc:creator>
    <dc:date>2018-07-25T01:27:47Z</dc:date>
    <item>
      <title>Ambari 2.6.1.5 setup error on Ubuntu 16</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-2-6-1-5-setup-error-on-Ubuntu-16/m-p/205161#M81092</link>
      <description>&lt;P&gt;Following the instruction from &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.5/bk_ambari-installation/content/set_up_the_ambari_server.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.5/bk_ambari-installation/content/set_up_the_ambari_server.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Package was installed successfully, but failed when creating schema and user with "ambari-server setup". Here is the message&lt;/P&gt;&lt;PRE&gt;root@msl-dpe-perf75:/usr/local# ambari-server setup
Using python  /usr/bin/python
Setup ambari-server
Checking SELinux...
WARNING: Could not run /usr/sbin/sestatus: OK
Customize user account for ambari-server daemon [y/n] (n)? y
Enter user account for ambari-server daemon (root):
Adjusting ambari-server permissions and ownership...
Checking firewall status...
Checking JDK...
Do you want to change Oracle JDK [y/n] (n)? y
[1] Oracle JDK 1.8 + Java Cryptography Extension (JCE) Policy Files 8
[2] Oracle JDK 1.7 + Java Cryptography Extension (JCE) Policy Files 7
[3] Custom JDK
==============================================================================
Enter choice (1): 1
JDK already exists, using /var/lib/ambari-server/resources/jdk-8u112-linux-x64.tar.gz
Installing JDK to /usr/jdk64/
Successfully installed JDK to /usr/jdk64/
JCE Policy archive already exists, using /var/lib/ambari-server/resources/jce_policy-8.zip
Installing JCE policy...
Checking GPL software agreement...
Completing setup...
Configuring database...
Enter advanced database configuration [y/n] (n)? y
Configuring database...
==============================================================================
Choose one of the following options:
[1] - PostgreSQL (Embedded)
[2] - Oracle
[3] - MySQL / MariaDB
[4] - PostgreSQL
[5] - Microsoft SQL Server (Tech Preview)
[6] - SQL Anywhere
[7] - BDB
==============================================================================
Enter choice (1): 1
Database admin user (postgres): 
Database name (ambari): 
Postgres schema (ambari): 
Username (ambari): 
Enter Database Password (bigdata): 
Default properties detected. Using built-in database.
Configuring ambari database...
Checking PostgreSQL...
Configuring local database...
Configuring PostgreSQL...
Backup for pg_hba found, reconfiguration not required
Creating schema and user...
ERROR: Failed to execute command:['ambari-sudo.sh', 'su', 'postgres', '-', '--command=psql -f /var/lib/ambari-server/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql -v username=\'"ambari"\' -v password="\'bigdata\'" -v dbname="ambari"']
ERROR: stderr:psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
ERROR: stdout:
failed to execute queries ...retrying (1)
Creating schema and user...
ERROR: Failed to execute command:['ambari-sudo.sh', 'su', 'postgres', '-', '--command=psql -f /var/lib/ambari-server/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql -v username=\'"ambari"\' -v password="\'bigdata\'" -v dbname="ambari"']
ERROR: stderr:psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
ERROR: stdout:
failed to execute queries ...retrying (2)
Creating schema and user...
ERROR: Exiting with exit code 2. 
REASON: Running database init script failed. Exiting.
root@msl-dpe-perf75:/usr/local# &lt;/PRE&gt;&lt;P&gt;Can anyone suggest how to resolve the error?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 01:22:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-2-6-1-5-setup-error-on-Ubuntu-16/m-p/205161#M81092</guid>
      <dc:creator>harry_li</dc:creator>
      <dc:date>2018-07-25T01:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari 2.6.1.5 setup error on Ubuntu 16</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-2-6-1-5-setup-error-on-Ubuntu-16/m-p/205162#M81093</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/87334/harryli.html" nodeid="87334"&gt;@Harry Li&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is likely the postgresql service was not started.  Try to manually start it and re-run ambari-server setup.&lt;/P&gt;&lt;PRE&gt;service postgresql start&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jul 2018 01:27:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-2-6-1-5-setup-error-on-Ubuntu-16/m-p/205162#M81093</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2018-07-25T01:27:47Z</dc:date>
    </item>
  </channel>
</rss>

