Possible Postgres Version Causing Ambari Server Setup Problems

This topic contains 7 replies, has 4 voices, and was last updated by  Phillip Burger 1 year, 10 months ago.

  • Creator
    Topic
  • #16358

    The version of Postgres that is installed with Ambari is different than what is listed in the documentation. I continue to encounter an error about being unable to start the Postgres server. Is this possibly related to the versions being different (detail below)?

    [root@ip-10-253-6-179 ~]# ambari-server setup
    Using python /usr/bin/python2.6
    Run postgresql initdb
    postgresql: unrecognized service
    Run postgresql start
    postgresql: unrecognized service
    Setup ambari-server
    Checking SELinux…
    WARNING: Could not run /usr/sbin/sestatus: OK
    Checking iptables…
    iptables is disabled now
    Checking PostgreSQL…
    About to start PostgreSQL
    ERROR: Unable to start PostgreSQL server. Exiting

    There are not log files in the Ambar log file directory. I FTPed the output from check.

    To simplify, I am now just trying to install on a one-node cluster.
    When I yum install -y ambari-server, these versions of the postgres components install:

    [root@ip-10-253-6-179 ~]# rpm -qa | grep -ie postgres*
    postgresql91-server-9.1.5-3PGDG.rhel6.x86_64
    postgresql91-9.1.5-3PGDG.rhel6.x86_64
    postgresql91-libs-9.1.5-3PGDG.rhel6.x86_64

    The versions necessary for Ambari and HDP to run are listed here and are different than what was installed:

    http://docs.hortonworks.com/HDPDocuments/HDP1/HDP-1.2.1/bk_using_Ambari_book/content/ambari-chap1-5-1.html

    listed at this above URL are:
    postgresql 8.4.13-1.el6_3
    postgresql-libs 8.4.13-1.el6_3
    postgresql-server 8.4.13-1.el6_3

    I’m on an AWS instance, here is the CentOS version, [root@ip-10-253-6-179 ~]# cat /etc/*-release
    CentOS release 6.3 (Final)
    CentOS release 6.3 (Final)
    CentOS release 6.3 (Final)

    The AMI is: ami-2ac9411a

Viewing 7 replies - 1 through 7 (of 7 total)

You must be to reply to this topic. | Create Account

  • Author
    Replies
  • #17712
    Collapse
    #17456

    Larry Liu
    Moderator

    Hi, Petri,

    I see you started a new post for your issue. Please track your issue in the new post

    Thanks

    Larry

    Collapse
    #17454

    petri koski
    Member

    Hello,

    I am having the same problem. Grr! I did yum install postgres etc. But problem still exist:

    Starting postgresql service: [FAILED]

    Any ideas what could be wrong ? I am following guide found on Hortons webpage.

    Collapse
    #16824

    tedr
    Member

    Hi Phillip,

    Thanks for the information. I am informed by our Eng folks that we don’t specify which version of postgresql to dl, we just have a requirement that it be greater than 8. Apparently, from your experience, it also must be less than 9.1. I will log an issue on the Ambari Jira.

    Thanks,
    Ted.

    Collapse
    #16820

    Hi, Ted. The OS version is CentOS 6.3. Here is information from the AWS AMI:

    RightImage_CentOS_6.3_x64_v5.8.8.5 (ami-2ac9411a)

    -Phil

    Collapse
    #16393

    tedr
    Member

    Hi Phillip,

    Thanks for letting us know. We’ll look into how it was that 9.1.5 was installed and how to make sure that the correct version get’s installed. To help us with this could you tell us what is the OS and version you are running on?

    Thanks,
    Ted.

    Collapse
    #16359

    I solved this. I installed Postgres 8.4.13 using this command:

    yum install postgresql postgresql-server

    Ambari server started up after this.

    postgres 9.1.5 was definitely installed with Ambari server.

    Collapse
Viewing 7 replies - 1 through 7 (of 7 total)
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.