[jira] [Updated] (AMBARI-21110) ambari-server setup fails with default postgres
[ https://issues.apache.org/jira/browse/AMBARI-21110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sumit Mohanty updated AMBARI-21110: --- Resolution: Cannot Reproduce Status: Resolved (was: Patch Available) > ambari-server setup fails with default postgres > --- > > Key: AMBARI-21110 > URL: https://issues.apache.org/jira/browse/AMBARI-21110 > Project: Ambari > Issue Type: Bug >Reporter: Andrew Onischuk >Assignee: Andrew Onischuk > Fix For: 2.5.2 > > Attachments: AMBARI-21110.patch > > > Thisis the first run with oracle12. Initially infra sets up Ambari with > default postgres and later on ambari setup happens with Oracle12. But now the > first setup with default postgres is failing with below error > > > > root@172.27.24.11 "ambari-server setup > --java-home=/base/tools/jdk1.8.0_112 -s" > 2017-05-22 10:57:54.032 Using python /usr/bin/python > 2017-05-22 10:57:54.032 Setup ambari-server > 2017-05-22 10:58:14.299 Checking SELinux... > 2017-05-22 10:58:14.299 SELinux status is 'disabled' > 2017-05-22 10:58:14.299 Customize user account for ambari-server daemon > [y/n] (n)? > 2017-05-22 10:58:14.299 Adjusting ambari-server permissions and > ownership... > 2017-05-22 10:58:14.299 Checking firewall status... > 2017-05-22 10:58:14.299 FATAL: Could not load > /lib/modules/3.10.0-327.13.1.el7.x86_64/modules.dep: No such file or directory > 2017-05-22 10:58:14.299 iptables v1.4.7: can't initialize iptables table > `nat': Permission denied (you must be root) > 2017-05-22 10:58:14.299 Perhaps iptables or your kernel needs to be > upgraded. > 2017-05-22 10:58:14.299 FATAL: Could not load > /lib/modules/3.10.0-327.13.1.el7.x86_64/modules.dep: No such file or directory > 2017-05-22 10:58:14.299 iptables v1.4.7: can't initialize iptables table > `filter': Permission denied (you must be root) > 2017-05-22 10:58:14.299 Perhaps iptables or your kernel needs to be > upgraded. > 2017-05-22 10:58:14.299 WARNING: iptables is running. Confirm the > necessary Ambari ports are accessible. Refer to the Ambari documentation for > more details on ports. > 2017-05-22 10:58:14.299 OK to continue [y/n] (y)? > 2017-05-22 10:58:14.299 Checking JDK... > 2017-05-22 10:58:14.299 WARNING: JAVA_HOME /base/tools/jdk1.8.0_112 must > be valid on ALL hosts > 2017-05-22 10:58:14.299 WARNING: JCE Policy files are required for > configuring Kerberos security. If you plan to use Kerberos,please make sure > JCE Unlimited Strength Jurisdiction Policy Files are valid on all hosts. > 2017-05-22 10:58:14.299 Completing setup... > 2017-05-22 10:58:14.299 Configuring database... > 2017-05-22 10:58:14.299 Enter advanced database configuration [y/n] (n)? > 2017-05-22 10:58:14.299 Configuring database... > 2017-05-22 10:58:14.299 Default properties detected. Using built-in > database. > 2017-05-22 10:58:14.299 Configuring ambari database... > 2017-05-22 10:58:14.299 Checking PostgreSQL... > 2017-05-22 10:58:14.299 Running initdb: This may take up to a minute. > 2017-05-22 10:58:14.299 Initializing database: [ OK ] > 2017-05-22 10:58:14.299 > 2017-05-22 10:58:14.299 About to start PostgreSQL > 2017-05-22 10:58:14.299 Configuring local database... > 2017-05-22 10:58:14.299 Configuring PostgreSQL... > 2017-05-22 10:58:14.299 Creating schema and user... > 2017-05-22 10:58:14.299 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"'] > 2017-05-22 10:58:14.299 ERROR: stderr:could not change directory to > "/root" > 2017-05-22 10:58:14.299 psql: could not connect to server: No such file > or directory > 2017-05-22 10:58:14.299 Is the server running locally and accepting > 2017-05-22 10:58:14.299 connections on Unix domain socket > "/tmp/.s.PGSQL.5432"? > 2017-05-22 10:58:14.299 > 2017-05-22 10:58:14.299 ERROR: stdout: > 2017-05-22 10:58:14.299 failed to execute queries ...retrying (1) > 2017-05-22 10:58:14.299 Creating schema and user... > 2017-05-22 10:58:14.299 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"'] > 2017-05-22 10:58:14.299 ERROR: stderr:could not change directory to > "/root" > 2017-05-22 10:58:14.299 psql: could not connect to server: No such file > or directory > 2017-05-22 10:58:14.299 Is the server running locally and
[jira] [Updated] (AMBARI-21110) ambari-server setup fails with default postgres
[ https://issues.apache.org/jira/browse/AMBARI-21110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Onischuk updated AMBARI-21110: - Fix Version/s: 2.5.2 > ambari-server setup fails with default postgres > --- > > Key: AMBARI-21110 > URL: https://issues.apache.org/jira/browse/AMBARI-21110 > Project: Ambari > Issue Type: Bug >Reporter: Andrew Onischuk >Assignee: Andrew Onischuk > Fix For: 2.5.2 > > Attachments: AMBARI-21110.patch > > > Thisis the first run with oracle12. Initially infra sets up Ambari with > default postgres and later on ambari setup happens with Oracle12. But now the > first setup with default postgres is failing with below error > > > > root@172.27.24.11 "ambari-server setup > --java-home=/base/tools/jdk1.8.0_112 -s" > 2017-05-22 10:57:54.032 Using python /usr/bin/python > 2017-05-22 10:57:54.032 Setup ambari-server > 2017-05-22 10:58:14.299 Checking SELinux... > 2017-05-22 10:58:14.299 SELinux status is 'disabled' > 2017-05-22 10:58:14.299 Customize user account for ambari-server daemon > [y/n] (n)? > 2017-05-22 10:58:14.299 Adjusting ambari-server permissions and > ownership... > 2017-05-22 10:58:14.299 Checking firewall status... > 2017-05-22 10:58:14.299 FATAL: Could not load > /lib/modules/3.10.0-327.13.1.el7.x86_64/modules.dep: No such file or directory > 2017-05-22 10:58:14.299 iptables v1.4.7: can't initialize iptables table > `nat': Permission denied (you must be root) > 2017-05-22 10:58:14.299 Perhaps iptables or your kernel needs to be > upgraded. > 2017-05-22 10:58:14.299 FATAL: Could not load > /lib/modules/3.10.0-327.13.1.el7.x86_64/modules.dep: No such file or directory > 2017-05-22 10:58:14.299 iptables v1.4.7: can't initialize iptables table > `filter': Permission denied (you must be root) > 2017-05-22 10:58:14.299 Perhaps iptables or your kernel needs to be > upgraded. > 2017-05-22 10:58:14.299 WARNING: iptables is running. Confirm the > necessary Ambari ports are accessible. Refer to the Ambari documentation for > more details on ports. > 2017-05-22 10:58:14.299 OK to continue [y/n] (y)? > 2017-05-22 10:58:14.299 Checking JDK... > 2017-05-22 10:58:14.299 WARNING: JAVA_HOME /base/tools/jdk1.8.0_112 must > be valid on ALL hosts > 2017-05-22 10:58:14.299 WARNING: JCE Policy files are required for > configuring Kerberos security. If you plan to use Kerberos,please make sure > JCE Unlimited Strength Jurisdiction Policy Files are valid on all hosts. > 2017-05-22 10:58:14.299 Completing setup... > 2017-05-22 10:58:14.299 Configuring database... > 2017-05-22 10:58:14.299 Enter advanced database configuration [y/n] (n)? > 2017-05-22 10:58:14.299 Configuring database... > 2017-05-22 10:58:14.299 Default properties detected. Using built-in > database. > 2017-05-22 10:58:14.299 Configuring ambari database... > 2017-05-22 10:58:14.299 Checking PostgreSQL... > 2017-05-22 10:58:14.299 Running initdb: This may take up to a minute. > 2017-05-22 10:58:14.299 Initializing database: [ OK ] > 2017-05-22 10:58:14.299 > 2017-05-22 10:58:14.299 About to start PostgreSQL > 2017-05-22 10:58:14.299 Configuring local database... > 2017-05-22 10:58:14.299 Configuring PostgreSQL... > 2017-05-22 10:58:14.299 Creating schema and user... > 2017-05-22 10:58:14.299 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"'] > 2017-05-22 10:58:14.299 ERROR: stderr:could not change directory to > "/root" > 2017-05-22 10:58:14.299 psql: could not connect to server: No such file > or directory > 2017-05-22 10:58:14.299 Is the server running locally and accepting > 2017-05-22 10:58:14.299 connections on Unix domain socket > "/tmp/.s.PGSQL.5432"? > 2017-05-22 10:58:14.299 > 2017-05-22 10:58:14.299 ERROR: stdout: > 2017-05-22 10:58:14.299 failed to execute queries ...retrying (1) > 2017-05-22 10:58:14.299 Creating schema and user... > 2017-05-22 10:58:14.299 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"'] > 2017-05-22 10:58:14.299 ERROR: stderr:could not change directory to > "/root" > 2017-05-22 10:58:14.299 psql: could not connect to server: No such file > or directory > 2017-05-22 10:58:14.299 Is the server running locally and accepting > 2017-05-22 10:58:14.299 connections on
[jira] [Updated] (AMBARI-21110) ambari-server setup fails with default postgres
[ https://issues.apache.org/jira/browse/AMBARI-21110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Onischuk updated AMBARI-21110: - Status: Patch Available (was: Open) > ambari-server setup fails with default postgres > --- > > Key: AMBARI-21110 > URL: https://issues.apache.org/jira/browse/AMBARI-21110 > Project: Ambari > Issue Type: Bug >Reporter: Andrew Onischuk >Assignee: Andrew Onischuk > Fix For: 2.5.1 > > Attachments: AMBARI-21110.patch > > > Thisis the first run with oracle12. Initially infra sets up Ambari with > default postgres and later on ambari setup happens with Oracle12. But now the > first setup with default postgres is failing with below error > > > > root@172.27.24.11 "ambari-server setup > --java-home=/base/tools/jdk1.8.0_112 -s" > 2017-05-22 10:57:54.032 Using python /usr/bin/python > 2017-05-22 10:57:54.032 Setup ambari-server > 2017-05-22 10:58:14.299 Checking SELinux... > 2017-05-22 10:58:14.299 SELinux status is 'disabled' > 2017-05-22 10:58:14.299 Customize user account for ambari-server daemon > [y/n] (n)? > 2017-05-22 10:58:14.299 Adjusting ambari-server permissions and > ownership... > 2017-05-22 10:58:14.299 Checking firewall status... > 2017-05-22 10:58:14.299 FATAL: Could not load > /lib/modules/3.10.0-327.13.1.el7.x86_64/modules.dep: No such file or directory > 2017-05-22 10:58:14.299 iptables v1.4.7: can't initialize iptables table > `nat': Permission denied (you must be root) > 2017-05-22 10:58:14.299 Perhaps iptables or your kernel needs to be > upgraded. > 2017-05-22 10:58:14.299 FATAL: Could not load > /lib/modules/3.10.0-327.13.1.el7.x86_64/modules.dep: No such file or directory > 2017-05-22 10:58:14.299 iptables v1.4.7: can't initialize iptables table > `filter': Permission denied (you must be root) > 2017-05-22 10:58:14.299 Perhaps iptables or your kernel needs to be > upgraded. > 2017-05-22 10:58:14.299 WARNING: iptables is running. Confirm the > necessary Ambari ports are accessible. Refer to the Ambari documentation for > more details on ports. > 2017-05-22 10:58:14.299 OK to continue [y/n] (y)? > 2017-05-22 10:58:14.299 Checking JDK... > 2017-05-22 10:58:14.299 WARNING: JAVA_HOME /base/tools/jdk1.8.0_112 must > be valid on ALL hosts > 2017-05-22 10:58:14.299 WARNING: JCE Policy files are required for > configuring Kerberos security. If you plan to use Kerberos,please make sure > JCE Unlimited Strength Jurisdiction Policy Files are valid on all hosts. > 2017-05-22 10:58:14.299 Completing setup... > 2017-05-22 10:58:14.299 Configuring database... > 2017-05-22 10:58:14.299 Enter advanced database configuration [y/n] (n)? > 2017-05-22 10:58:14.299 Configuring database... > 2017-05-22 10:58:14.299 Default properties detected. Using built-in > database. > 2017-05-22 10:58:14.299 Configuring ambari database... > 2017-05-22 10:58:14.299 Checking PostgreSQL... > 2017-05-22 10:58:14.299 Running initdb: This may take up to a minute. > 2017-05-22 10:58:14.299 Initializing database: [ OK ] > 2017-05-22 10:58:14.299 > 2017-05-22 10:58:14.299 About to start PostgreSQL > 2017-05-22 10:58:14.299 Configuring local database... > 2017-05-22 10:58:14.299 Configuring PostgreSQL... > 2017-05-22 10:58:14.299 Creating schema and user... > 2017-05-22 10:58:14.299 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"'] > 2017-05-22 10:58:14.299 ERROR: stderr:could not change directory to > "/root" > 2017-05-22 10:58:14.299 psql: could not connect to server: No such file > or directory > 2017-05-22 10:58:14.299 Is the server running locally and accepting > 2017-05-22 10:58:14.299 connections on Unix domain socket > "/tmp/.s.PGSQL.5432"? > 2017-05-22 10:58:14.299 > 2017-05-22 10:58:14.299 ERROR: stdout: > 2017-05-22 10:58:14.299 failed to execute queries ...retrying (1) > 2017-05-22 10:58:14.299 Creating schema and user... > 2017-05-22 10:58:14.299 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"'] > 2017-05-22 10:58:14.299 ERROR: stderr:could not change directory to > "/root" > 2017-05-22 10:58:14.299 psql: could not connect to server: No such file > or directory > 2017-05-22 10:58:14.299 Is the server running locally and accepting > 2017-05-22 10:58:14.299
[jira] [Updated] (AMBARI-21110) ambari-server setup fails with default postgres
[ https://issues.apache.org/jira/browse/AMBARI-21110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Onischuk updated AMBARI-21110: - Fix Version/s: (was: 2.5.1) > ambari-server setup fails with default postgres > --- > > Key: AMBARI-21110 > URL: https://issues.apache.org/jira/browse/AMBARI-21110 > Project: Ambari > Issue Type: Bug >Reporter: Andrew Onischuk >Assignee: Andrew Onischuk > Attachments: AMBARI-21110.patch > > > Thisis the first run with oracle12. Initially infra sets up Ambari with > default postgres and later on ambari setup happens with Oracle12. But now the > first setup with default postgres is failing with below error > > > > root@172.27.24.11 "ambari-server setup > --java-home=/base/tools/jdk1.8.0_112 -s" > 2017-05-22 10:57:54.032 Using python /usr/bin/python > 2017-05-22 10:57:54.032 Setup ambari-server > 2017-05-22 10:58:14.299 Checking SELinux... > 2017-05-22 10:58:14.299 SELinux status is 'disabled' > 2017-05-22 10:58:14.299 Customize user account for ambari-server daemon > [y/n] (n)? > 2017-05-22 10:58:14.299 Adjusting ambari-server permissions and > ownership... > 2017-05-22 10:58:14.299 Checking firewall status... > 2017-05-22 10:58:14.299 FATAL: Could not load > /lib/modules/3.10.0-327.13.1.el7.x86_64/modules.dep: No such file or directory > 2017-05-22 10:58:14.299 iptables v1.4.7: can't initialize iptables table > `nat': Permission denied (you must be root) > 2017-05-22 10:58:14.299 Perhaps iptables or your kernel needs to be > upgraded. > 2017-05-22 10:58:14.299 FATAL: Could not load > /lib/modules/3.10.0-327.13.1.el7.x86_64/modules.dep: No such file or directory > 2017-05-22 10:58:14.299 iptables v1.4.7: can't initialize iptables table > `filter': Permission denied (you must be root) > 2017-05-22 10:58:14.299 Perhaps iptables or your kernel needs to be > upgraded. > 2017-05-22 10:58:14.299 WARNING: iptables is running. Confirm the > necessary Ambari ports are accessible. Refer to the Ambari documentation for > more details on ports. > 2017-05-22 10:58:14.299 OK to continue [y/n] (y)? > 2017-05-22 10:58:14.299 Checking JDK... > 2017-05-22 10:58:14.299 WARNING: JAVA_HOME /base/tools/jdk1.8.0_112 must > be valid on ALL hosts > 2017-05-22 10:58:14.299 WARNING: JCE Policy files are required for > configuring Kerberos security. If you plan to use Kerberos,please make sure > JCE Unlimited Strength Jurisdiction Policy Files are valid on all hosts. > 2017-05-22 10:58:14.299 Completing setup... > 2017-05-22 10:58:14.299 Configuring database... > 2017-05-22 10:58:14.299 Enter advanced database configuration [y/n] (n)? > 2017-05-22 10:58:14.299 Configuring database... > 2017-05-22 10:58:14.299 Default properties detected. Using built-in > database. > 2017-05-22 10:58:14.299 Configuring ambari database... > 2017-05-22 10:58:14.299 Checking PostgreSQL... > 2017-05-22 10:58:14.299 Running initdb: This may take up to a minute. > 2017-05-22 10:58:14.299 Initializing database: [ OK ] > 2017-05-22 10:58:14.299 > 2017-05-22 10:58:14.299 About to start PostgreSQL > 2017-05-22 10:58:14.299 Configuring local database... > 2017-05-22 10:58:14.299 Configuring PostgreSQL... > 2017-05-22 10:58:14.299 Creating schema and user... > 2017-05-22 10:58:14.299 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"'] > 2017-05-22 10:58:14.299 ERROR: stderr:could not change directory to > "/root" > 2017-05-22 10:58:14.299 psql: could not connect to server: No such file > or directory > 2017-05-22 10:58:14.299 Is the server running locally and accepting > 2017-05-22 10:58:14.299 connections on Unix domain socket > "/tmp/.s.PGSQL.5432"? > 2017-05-22 10:58:14.299 > 2017-05-22 10:58:14.299 ERROR: stdout: > 2017-05-22 10:58:14.299 failed to execute queries ...retrying (1) > 2017-05-22 10:58:14.299 Creating schema and user... > 2017-05-22 10:58:14.299 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"'] > 2017-05-22 10:58:14.299 ERROR: stderr:could not change directory to > "/root" > 2017-05-22 10:58:14.299 psql: could not connect to server: No such file > or directory > 2017-05-22 10:58:14.299 Is the server running locally and accepting > 2017-05-22 10:58:14.299 connections on Unix domain socket
[jira] [Updated] (AMBARI-21110) ambari-server setup fails with default postgres
[ https://issues.apache.org/jira/browse/AMBARI-21110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Onischuk updated AMBARI-21110: - Attachment: AMBARI-21110.patch > ambari-server setup fails with default postgres > --- > > Key: AMBARI-21110 > URL: https://issues.apache.org/jira/browse/AMBARI-21110 > Project: Ambari > Issue Type: Bug >Reporter: Andrew Onischuk >Assignee: Andrew Onischuk > Attachments: AMBARI-21110.patch > > > Thisis the first run with oracle12. Initially infra sets up Ambari with > default postgres and later on ambari setup happens with Oracle12. But now the > first setup with default postgres is failing with below error > > > > root@172.27.24.11 "ambari-server setup > --java-home=/base/tools/jdk1.8.0_112 -s" > 2017-05-22 10:57:54.032 Using python /usr/bin/python > 2017-05-22 10:57:54.032 Setup ambari-server > 2017-05-22 10:58:14.299 Checking SELinux... > 2017-05-22 10:58:14.299 SELinux status is 'disabled' > 2017-05-22 10:58:14.299 Customize user account for ambari-server daemon > [y/n] (n)? > 2017-05-22 10:58:14.299 Adjusting ambari-server permissions and > ownership... > 2017-05-22 10:58:14.299 Checking firewall status... > 2017-05-22 10:58:14.299 FATAL: Could not load > /lib/modules/3.10.0-327.13.1.el7.x86_64/modules.dep: No such file or directory > 2017-05-22 10:58:14.299 iptables v1.4.7: can't initialize iptables table > `nat': Permission denied (you must be root) > 2017-05-22 10:58:14.299 Perhaps iptables or your kernel needs to be > upgraded. > 2017-05-22 10:58:14.299 FATAL: Could not load > /lib/modules/3.10.0-327.13.1.el7.x86_64/modules.dep: No such file or directory > 2017-05-22 10:58:14.299 iptables v1.4.7: can't initialize iptables table > `filter': Permission denied (you must be root) > 2017-05-22 10:58:14.299 Perhaps iptables or your kernel needs to be > upgraded. > 2017-05-22 10:58:14.299 WARNING: iptables is running. Confirm the > necessary Ambari ports are accessible. Refer to the Ambari documentation for > more details on ports. > 2017-05-22 10:58:14.299 OK to continue [y/n] (y)? > 2017-05-22 10:58:14.299 Checking JDK... > 2017-05-22 10:58:14.299 WARNING: JAVA_HOME /base/tools/jdk1.8.0_112 must > be valid on ALL hosts > 2017-05-22 10:58:14.299 WARNING: JCE Policy files are required for > configuring Kerberos security. If you plan to use Kerberos,please make sure > JCE Unlimited Strength Jurisdiction Policy Files are valid on all hosts. > 2017-05-22 10:58:14.299 Completing setup... > 2017-05-22 10:58:14.299 Configuring database... > 2017-05-22 10:58:14.299 Enter advanced database configuration [y/n] (n)? > 2017-05-22 10:58:14.299 Configuring database... > 2017-05-22 10:58:14.299 Default properties detected. Using built-in > database. > 2017-05-22 10:58:14.299 Configuring ambari database... > 2017-05-22 10:58:14.299 Checking PostgreSQL... > 2017-05-22 10:58:14.299 Running initdb: This may take up to a minute. > 2017-05-22 10:58:14.299 Initializing database: [ OK ] > 2017-05-22 10:58:14.299 > 2017-05-22 10:58:14.299 About to start PostgreSQL > 2017-05-22 10:58:14.299 Configuring local database... > 2017-05-22 10:58:14.299 Configuring PostgreSQL... > 2017-05-22 10:58:14.299 Creating schema and user... > 2017-05-22 10:58:14.299 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"'] > 2017-05-22 10:58:14.299 ERROR: stderr:could not change directory to > "/root" > 2017-05-22 10:58:14.299 psql: could not connect to server: No such file > or directory > 2017-05-22 10:58:14.299 Is the server running locally and accepting > 2017-05-22 10:58:14.299 connections on Unix domain socket > "/tmp/.s.PGSQL.5432"? > 2017-05-22 10:58:14.299 > 2017-05-22 10:58:14.299 ERROR: stdout: > 2017-05-22 10:58:14.299 failed to execute queries ...retrying (1) > 2017-05-22 10:58:14.299 Creating schema and user... > 2017-05-22 10:58:14.299 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"'] > 2017-05-22 10:58:14.299 ERROR: stderr:could not change directory to > "/root" > 2017-05-22 10:58:14.299 psql: could not connect to server: No such file > or directory > 2017-05-22 10:58:14.299 Is the server running locally and accepting > 2017-05-22 10:58:14.299 connections on Unix domain socket >