You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bigtop.apache.org by "Masatake Iwasaki (Jira)" <ji...@apache.org> on 2021/06/21 04:29:00 UTC
[jira] [Commented] (BIGTOP-3553) Fix failure of deploying
ambari-server on CentOS 8
[ https://issues.apache.org/jira/browse/BIGTOP-3553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17366369#comment-17366369 ]
Masatake Iwasaki commented on BIGTOP-3553:
------------------------------------------
When I manually invoked the cmdline of Puppet manifests, the {{ambari-server setup}} is stucked on restarting postgresql service.
{noformat}
$ ./docker-hadoop.sh --create 1 --image bigtop/puppet:trunk-centos-8 --memory 16g --repo file:///bigtop-home/output --disable-gpg-check
$ ./docker-hadoop.sh --exec 1 /bin/bash
[root@0cf8820fd2a7 /]# yum install -y ambari-server
[root@0cf8820fd2a7 /]# /usr/sbin/ambari-server install-mpack --purge --verbose --mpack=/var/lib/ambari-server/resources/odpi-ambari-mpack-1.0.0.0-SNAPSHOT.tar.gz
...
Ambari Server 'install-mpack' completed successfully
[root@0cf8820fd2a7 /]# /usr/sbin/ambari-server setup -j $(readlink -f /usr/bin/java | sed -e 's@jre/bin/java@@' -e 's@bin/java@@') -s
...
Configuring ambari database...
Checking PostgreSQL...
Running initdb: This may take up to a minute.
About to start PostgreSQL
Configuring local database...
Configuring PostgreSQL...
Restarting PostgreSQL
{noformat}
The postgresql looks already stopped by checking from another console.
{noformat}
[root@0cf8820fd2a7 /]# systemctl status postgresql
● postgresql.service - PostgreSQL database server
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled; vendor preset: disabled)
Active: deactivating (final-sigkill) since Mon 2021-06-21 04:17:06 UTC; 5min ago
Process: 13400 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
Process: 13367 ExecStart=/usr/bin/postmaster -D ${PGDATA} (code=exited, status=0/SUCCESS)
Process: 13365 ExecStartPre=/usr/libexec/postgresql-check-db-dir postgresql (code=exited, status=0/SUCCESS)
Main PID: 13367 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 201542)
Memory: 2.0M
CGroup: /docker/0cf8820fd2a75b103160a99846a8723dab82d035c7b188a9a6a779e2ca796619/system.slice/postgresql.service
Jun 21 04:17:06 0cf8820fd2a7 postmaster[13367]: 2021-06-21 04:17:06.624 UTC [13367] LOG: listening on IPv4 address "127.0.0.1", port 5432
Jun 21 04:17:06 0cf8820fd2a7 postmaster[13367]: 2021-06-21 04:17:06.625 UTC [13367] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
Jun 21 04:17:06 0cf8820fd2a7 postmaster[13367]: 2021-06-21 04:17:06.628 UTC [13367] LOG: listening on Unix socket "/tmp/.s.PGSQL.5432"
Jun 21 04:17:06 0cf8820fd2a7 postmaster[13367]: 2021-06-21 04:17:06.638 UTC [13367] LOG: redirecting log output to logging collector process
Jun 21 04:17:06 0cf8820fd2a7 postmaster[13367]: 2021-06-21 04:17:06.638 UTC [13367] HINT: Future log output will appear in directory "log".
Jun 21 04:17:06 0cf8820fd2a7 systemd[1]: Started PostgreSQL database server.
Jun 21 04:17:06 0cf8820fd2a7 systemd[1]: Reloading PostgreSQL database server.
Jun 21 04:17:06 0cf8820fd2a7 systemd[1]: Reloaded PostgreSQL database server.
Jun 21 04:17:06 0cf8820fd2a7 systemd[1]: Stopping PostgreSQL database server...
Jun 21 04:17:06 0cf8820fd2a7 systemd[1]: postgresql.service: Killing process 13368 (postmaster) with signal SIGKILL.
[root@0cf8820fd2a7 /]# ps aux | grep postgres
root 13413 0.0 0.0 86668 7028 pts/0 S+ 04:17 0:00 /bin/systemctl restart postgresql.service
root 13435 0.0 0.0 14820 3228 pts/0 S+ 04:17 0:00 /bin/bash /var/lib/ambari-server/ambari-sudo.sh /usr/bin/env service postgresql start
root 13436 0.0 0.0 86668 6880 pts/0 S+ 04:17 0:00 /bin/systemctl start postgresql.service
root 13489 0.0 0.0 12112 1060 pts/1 S+ 04:27 0:00 grep --color=auto postgres
{noformat}
> Fix failure of deploying ambari-server on CentOS 8
> --------------------------------------------------
>
> Key: BIGTOP-3553
> URL: https://issues.apache.org/jira/browse/BIGTOP-3553
> Project: Bigtop
> Issue Type: Improvement
> Components: deployment
> Reporter: Masatake Iwasaki
> Priority: Major
>
> {{/usr/sbin/ambari-server setup}} timed out.
> {noformat}
> Notice: /Stage[main]/Ambari::Server/Package[ambari-server]/ensure: created
> Notice: /Stage[main]/Ambari::Server/Exec[mpack install]/returns: executed successfully
> Error: Command exceeded timeout
> Error: /Stage[main]/Ambari::Server/Exec[server setup]/returns: change from 'notrun' to ['0'] failed: Command exceeded timeout
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)