The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

Ambari Forum

Unable to start PostgreSQL server

  • #52218
    Kevin Zhang
    Participant

    I try to set up Ambari server on CentOs 6.2. The version of Ambari I ‘m installing is 1.5.1.

    I got error like following:

    “About to start PostgreSQL
    ERROR: Exiting with exit code 1.
    REASON: Unable to start PostgreSQL server. Exiting”

    I tried re-installing postgresql with command
    “yum install postgresql”

    But after that, i still got same error.

    Any ideas?

    Kevin

  • Author
    Replies
  • #53947
    Vincent Wylenzek
    Participant

    Hi Kevin,

    I am getting the same error (exit code 127) on RHEL 5.9 – Ambari 1.5.1:
    While installing Ambari-server on an offline RHEL 5.9 server through a Red Hat satellite server I am getting the issue below:

    Checking JDK…
    Do you want to change Oracle JDK [y/n] (n)? n
    Completing setup…
    Configuring database…
    Enter advanced database configuration [y/n] (n)? n
    Default properties detected. Using built-in database.
    Checking PostgreSQL…
    Running initdb: This may take upto a minute.
    About to start PostgreSQL
    ERROR: Exiting with exit code 127.
    REASON: Unable to start PostgreSQL server. Exiting

    PostgreSQL is successfully running, initdb works and the version is correct (installed by yum install ambari-server).
    Postgres has been installed by the default dir /var/lib/pgsql etc.

    Did you solve this issue?

    #53985
    Jeff Sposetti
    Moderator

    If you run “service postgresql start”, what do you get?

    #53990
    Jeff Sposetti
    Moderator

    Also, can you check the log file in here /var/lib/pgsql/data/pg_log and check the content in here /var/lib/pgsql/pgstartup.log ?

    #54479
    Vincent Wylenzek
    Participant

    Solved
    –> In ambari-server.py initdb is started with env in stead of /sbin/env, modified the .py script and it’s rocking now!

    #81992
    Nilesh Dhamanekar
    Participant

    Please see if /var/log has enough space. I got the above error as /var log was 100%.

The forum ‘Ambari’ is closed to new topics and replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.