iwasakims commented on pull request #683:
URL: https://github.com/apache/bigtop/pull/683#issuecomment-700639056


   The cause turned out to be the locale.
   ```
   [root@e175411847c9 /]# cat /var/lib/pgsql/initdb_postgresql.log
   The files belonging to this database system will be owned by user "postgres".
   This user must also own the server process.
   
   initdb: invalid locale settings; check LANG and LC_* environment variables
   ```
   
   `--no-locale` on initdb should be the fix. The cmdline is not configurable 
in Ambari. Setting environment variable in puppet manifest might be an option.
   ```
   [root@e175411847c9 /]# PGSETUP_INITDB_OPTIONS="--no-locale" 
/usr/bin/postgresql-setup initdb
   WARNING: using obsoleted argument syntax, try --help
   WARNING: arguments transformed to: postgresql-setup --initdb --unit 
postgresql
    * Initializing database in '/var/lib/pgsql/data'
    * Initialized, logs are in /var/lib/pgsql/initdb_postgresql.log
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to