Home Forums HDP on Linux – Installation Brand new ambari-server yum install fails

This topic contains 20 replies, has 5 voices, and was last updated by  Jeff Sposetti 2 weeks, 5 days ago.

  • Creator
    Topic
  • #54347

    S D
    Participant

    I set up 3 new instances on Amazon EC2 cloud
    Obtained repo for a new hortonworks install from scratch (starting with ambari-server))
    wget http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.5.1/ambari.repo
    Copied repo file to yum repo directory and did yum install ambari-server

    Got the following error
    Error: Package: ambari-server-1.5.1.110-1.noarch (Updates-ambari-1.5.1)
    Requires: python26
    Error: Package: ambari-server-1.5.1.110-1.noarch (Updates-ambari-1.5.1)
    Requires: postgresql-server >= 8.1

    Any help is appreciated.

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

You must be logged in to reply to this topic.

  • Author
    Replies
  • #58532

    Jeff Sposetti
    Moderator

    Hi, Yes, I just repro’d the issue doing exactly what you said:

    1) put the rhel 5.x ambari.repo in place (on a rhel 6.x box)
    2) attempted to run “yum install ambari-server” and it failed due to package dependency
    3) put the correct rhel 6.x ambari.repo in place
    4) again attempted to run “yum install ambari-server” and it failed due to package dependency (it’s using the dep list from the first time I ran install in step 2)
    5) So I had to run “yum clean all”
    6) Then ran “yum install ambari-server” and it went thru.

    Great catch. Thanks!

    Collapse
    #58502

    Jimmy Da
    Participant

    I got the same error as you when I tried to install on my Centos6 machine.

    I resolved the problem when I realized I downloaded the wrong yum repo that was for Centos5.

    http://docs.hortonworks.com/HDPDocuments/Ambari-1.6.1.0/bk_using_Ambari_book/content/ambari-chap2-1.html

    To fix it, I download the right repo for my os, did ‘yum erase ambari-server’ (though I don’t think is necessary), ‘yum clean all’ (def necessary) before ‘yum install ambari-server’ again.

    Hopefully we made the same happy mistake :)

    Collapse
    #57612

    Duncan Allan
    Participant

    Hi Jeff,

    Thanks for the feedback. I agree that it is puzzling. From everything that I can tell, the version of python that I have installed should be more than sufficient. I’ve spent about half a day just working on this problem trying to either get yum to install python26 (I eventually found an RPM for this package, but it was for Centos v5, ultimately I could not get it to install as it conflicted with my existing version of python, and yum won’t let me remove python since it is dependent on it) and trying to get the ambari installation to proceed without forcing this dependency check.

    It’s really disheartening when you are stuck on the same problem for so long that no matter what you search for, you keep on getting the exact same search results, the first of which is this very page.

    In the end I was getting nowhere, so I decided to have a go at the other cluster provisioning offerings (which also listed python26 as a dependency), and I have managed to come right almost instantly with another of the available solutions.

    Collapse
    #57611

    Jeff Sposetti
    Moderator

    Hi Duncan,

    It’s unclear why you are seeing this in the deplist

    package: ambari-server.noarch 1.6.1-98
    dependency: python26
    Unsatisfied dependency

    The “dependency: python >= 2.6″ should satisfy this and on the installs I have done on centos6.4 to try to repro your situation, I do not have this required dependency. So it’s strange.

    Maybe others in the forums have suggestions on other things to look at?

    Collapse
    #57604

    Duncan Allan
    Participant

    Hi Jeff,

    Do you have any ideas where I’m going wrong? I’m still unable to proceed with this installation as I can not find any packages or RPMs for the module ‘python26′. I’ve stopped short of compiling my own RPM, but that seems to be the only choice at this point.

    Any help is still much appreciated.

    Collapse
    #57408

    Duncan Allan
    Participant

    And finally:

    $# yum deplist ambari-server
    Loaded plugins: fastestmirror, security
    Loading mirror speeds from cached hostfile
    * base: http://ftp.is.co.za
    * epel: fedora.mirror.ac.za
    * extras: http://ftp.is.co.za
    * updates: http://ftp.is.co.za
    Finding dependencies:
    package: ambari-server.noarch 1.2.0.1-1
    dependency: python(abi) = 2.6
    provider: python.x86_64 2.6.6-51.el6
    provider: python.x86_64 2.6.6-52.el6
    dependency: postgresql-server >= 8.1
    provider: postgresql-server.x86_64 8.4.18-1.el6_4
    provider: postgresql-server.x86_64 8.4.20-1.el6_5
    dependency: openssl
    provider: openssl.i686 1.0.1e-15.el6
    provider: openssl.x86_64 1.0.1e-15.el6
    provider: openssl.i686 1.0.1e-16.el6_5.1
    provider: openssl.x86_64 1.0.1e-16.el6_5.1
    provider: openssl.i686 1.0.1e-16.el6_5.14
    provider: openssl.x86_64 1.0.1e-16.el6_5.14
    provider: openssl.i686 1.0.1e-16.el6_5.4.0.1.centos
    provider: openssl.x86_64 1.0.1e-16.el6_5.4.0.1.centos
    provider: openssl.i686 1.0.1e-16.el6_5.4
    provider: openssl.x86_64 1.0.1e-16.el6_5.4
    provider: openssl.i686 1.0.1e-16.el6_5.7
    provider: openssl.x86_64 1.0.1e-16.el6_5.7
    provider: openssl.i686 1.0.1e-16.el6_5
    provider: openssl.x86_64 1.0.1e-16.el6_5
    dependency: python >= 2.6
    provider: python.x86_64 2.6.6-51.el6
    provider: python.x86_64 2.6.6-52.el6
    package: ambari-server.noarch 1.6.1-98
    dependency: python26
    Unsatisfied dependency
    dependency: config(ambari-server) = 1.6.1-98
    provider: ambari-server.noarch 1.6.1-98
    dependency: /bin/sh
    provider: bash.x86_64 4.1.2-15.el6_4
    dependency: postgresql-server >= 8.1
    provider: postgresql-server.x86_64 8.4.18-1.el6_4
    provider: postgresql-server.x86_64 8.4.20-1.el6_5
    dependency: openssl
    provider: openssl.i686 1.0.1e-15.el6
    provider: openssl.x86_64 1.0.1e-15.el6
    provider: openssl.i686 1.0.1e-16.el6_5.1
    provider: openssl.x86_64 1.0.1e-16.el6_5.1
    provider: openssl.i686 1.0.1e-16.el6_5.14
    provider: openssl.x86_64 1.0.1e-16.el6_5.14
    provider: openssl.i686 1.0.1e-16.el6_5.4.0.1.centos
    provider: openssl.x86_64 1.0.1e-16.el6_5.4.0.1.centos
    provider: openssl.i686 1.0.1e-16.el6_5.4
    provider: openssl.x86_64 1.0.1e-16.el6_5.4
    provider: openssl.i686 1.0.1e-16.el6_5.7
    provider: openssl.x86_64 1.0.1e-16.el6_5.7
    provider: openssl.i686 1.0.1e-16.el6_5
    provider: openssl.x86_64 1.0.1e-16.el6_5

    Any advice at all is greatly appreciated.

    Collapse
    #57407

    Duncan Allan
    Participant

    The rest of the requested information:

    $# yum info ambari-server
    Loaded plugins: fastestmirror, security
    Loading mirror speeds from cached hostfile
    epel/metalink | 1.5 kB 00:00
    * base: http://ftp.is.co.za
    * epel: fedora.mirror.ac.za
    * extras: http://ftp.is.co.za
    * updates: http://ftp.is.co.za
    HDP-2.1.3.0 | 2.9 kB 00:00
    HDP-UTILS-1.1.0.17 | 2.9 kB 00:00
    base | 3.7 kB 00:00
    extras | 3.4 kB 00:00
    updates | 3.4 kB 00:00
    Installed Packages
    Name : ambari-server
    Arch : noarch
    Version : 1.2.0.1
    Release : 1
    Size : 43 M
    Repo : installed
    From repo : ambari-1.x
    Summary : Ambari Server
    License : 2012, Apache Software Foundation
    Description : Maven Recipe: RPM Package.

    Available Packages
    Name : ambari-server
    Arch : noarch
    Version : 1.6.1
    Release : 98
    Size : 40 M
    Repo : Updates-ambari-1.6.1
    Summary : Ambari Server
    License : 2012, Apache Software Foundation
    Description : Maven Recipe: RPM Package.

    $# yum repolist
    Loaded plugins: fastestmirror, security
    Loading mirror speeds from cached hostfile
    * base: http://ftp.is.co.za
    * epel: fedora.mirror.ac.za
    * extras: http://ftp.is.co.za
    * updates: http://ftp.is.co.za
    repo id repo name status
    HDP-2.1.3.0 Hortonworks Data Platform Version – HDP-2.1.3.0 97
    HDP-UTILS-1.1.0.17 Hortonworks Data Platform Utils Version – HDP-UTILS-1.1.0.17 48
    Updates-ambari-1.6.1 ambari-1.6.1 – Updates 5
    ambari-1.x Ambari 1.x 5
    base CentOS-6 – Base 6,367
    epel Extra Packages for Enterprise Linux 6 – x86_64 10,999
    extras CentOS-6 – Extras 14
    updates CentOS-6 – Updates 1,153
    repolist: 18,688

    Collapse
    #57406

    Duncan Allan
    Participant

    Hi Jeff,

    Certainly, here are all of the relevant outputs:

    $# yum update ambari-server
    Loaded plugins: fastestmirror, security
    Loading mirror speeds from cached hostfile
    * base: http://ftp.is.co.za
    * epel: fedora.mirror.ac.za
    * extras: http://ftp.is.co.za
    * updates: http://ftp.is.co.za
    Setting up Update Process
    Resolving Dependencies
    –> Running transaction check
    —> Package ambari-server.noarch 0:1.2.0.1-1 will be updated
    —> Package ambari-server.noarch 0:1.6.1-98 will be an update
    –> Processing Dependency: python26 for package: ambari-server-1.6.1-98.noarch
    –> Finished Dependency Resolution
    Error: Package: ambari-server-1.6.1-98.noarch (Updates-ambari-1.6.1)
    Requires: python26
    You could try using –skip-broken to work around the problem
    You could try running: rpm -Va –nofiles –nodigest

    $# yum info python
    Loaded plugins: fastestmirror, security
    Loading mirror speeds from cached hostfile
    * base: http://ftp.is.co.za
    * epel: fedora.mirror.ac.za
    * extras: http://ftp.is.co.za
    * updates: http://ftp.is.co.za
    Installed Packages
    Name : python
    Arch : x86_64
    Version : 2.6.6
    Release : 52.el6
    Size : 78 k
    Repo : installed
    From repo : updates
    Summary : An interpreted, interactive, object-oriented programming language
    URL : http://www.python.org/
    License : Python
    Description : Python is an interpreted, interactive, object-oriented programming
    : language often compared to Tcl, Perl, Scheme or Java. Python includes
    : modules, classes, exceptions, very high level dynamic data types and
    : dynamic typing. Python supports interfaces to many system calls and
    : libraries, as well as to various windowing systems (X11, Motif, Tk,
    : Mac and MFC).
    :
    : Programmers can write new built-in modules for Python in C or C++.
    : Python can be used as an extension language for applications that need
    : a programmable interface.
    :
    : Note that documentation for Python is provided in the python-docs
    : package.
    :
    : This package provides the “python” executable; most of the actual
    : implementation is within the “python-libs” package.

    Including the rest of the info in my next response(s)

    Collapse
    #57404

    Jeff Sposetti
    Moderator

    You definitely want to leave the [Updates-ambari-1.6.1] repository. That is where the latest Ambari 1.6.1 is located.

    Can you provide more of the yum output? Can you also provide:

    yum info ambari-server
    yum deplist ambari-server
    yum repolist
    yum info python

    Collapse
    #57395

    Duncan Allan
    Participant

    Hi guys,

    I’m having almost the exact same problem, and I’m not sure how to work around it. I’m trying to setup ambari on a freshly re-installed set of nodes, and I’m stuck at installing the ambari-server on my master machine.

    I’m running CentOS 6.4 64-bit, and my installation of Ambari using Yum fails at:
    –> Finished Dependency Resolution
    Error: Package: ambari-server-1.6.1-98.noarch (Updates-ambari-1.6.1)
    Requires: python26

    Now, I’ve defintely got python installed on these machines, and the python version is 2.6.6. I’ve been searching high and low for an RPM for a package called python26 but I haven’t come up with anything.

    If I disable the “updates” section in the repo file (http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.6.1/ambari.repo), the installation will go ahead, but it tries to install Ambari version 1.2. If I let 1.2 install and then re-enable the updates repo, and try to perform an update. It fails again with the same issue.

    I would really like to be working with the latest versions of everything here. Any ideas where I’ve gone wrong, or if this is an issue with Ambari itself?

    Collapse
    #54413

    S D
    Participant

    got past the connection problem with ssh tunneling and port forwarding.

    Now the ambari registration was successful on the 1st node..but failed on the 2nd and 3rd. (they are unable to connect to the first)

    Collapse
    #54405

    S D
    Participant

    Now I cannot get to the Ambari console from my home browser (I even turned iptables off)
    Using <public-ec2-ip>:8080 as the login url
    Stuck at this point.

    Collapse
    #54404

    S D
    Participant

    Thanks for your help…it worked after I got those repos back.

    Collapse
    #54403

    S D
    Participant

    Good point..those repos are missing

    Is there a way I can get them ?

    Thanks

    Collapse
    #54401

    Jeff Sposetti
    Moderator

    If you run “yum repolist”, what do you see? I think postgresql-server is in “rhui-REGION-rhel-server-releases”. Wondering if you have that repo available?

    [root@ip-10-147-179-151 yum.repos.d]# yum repolist
    Loaded plugins: amazon-id, rhui-lb, security
    repo id repo name status
    HDP-UTILS-1.1.0.16 Hortonworks Data Platform Utils Ve 61
    HDP-UTILS-1.1.0.17 Hortonworks Data Platform Utils Ve 48
    Updates-ambari-1.5.1 ambari-1.5.1 – Updates 5
    ambari-1.x Ambari 1.x 5
    rhui-REGION-client-config-server-6 Red Hat Update Infrastructure 2.0 7
    rhui-REGION-rhel-server-releases Red Hat Enterprise Linux Server 6 12,535
    rhui-REGION-rhel-server-releases-optional Red Hat Enterprise Linux Server 6 7,099
    rhui-REGION-rhel-server-rh-common Red Hat Enterprise Linux Server 6 24
    rhui-REGION-rhel-server-rhscl Red Hat Enterprise Linux Server 6 539
    repolist: 20,323

    Collapse
    #54378

    S D
    Participant

    Red Hat Enterprise Linux 6.5 (PV) – ami-aa8bfe9a (64-bit) / ami-dc8ffaec (32-bit)
    Red Hat Enterprise Linux version 6.5 (PV), EBS-backed

    Collapse
    #54376

    Jeff Sposetti
    Moderator

    Which Amazon AMI are you using? Is it a community or quick start AMI (if so, which one)? Or is is home-grown? What OS? Thanks.

    Collapse
    #54354

    S D
    Participant

    Thanks..
    However, since these are Amazon EC2 instances, I dont think I can re-install the OS..is there an alternative

    Collapse
    #54350

    William Degnan
    Participant

    I should clarify…I mean I installed CentOS 65 by burning a live CD and booting to an actual server using the CD drive. Next I used the install program that came with the live CD to put CentOS 65 onto the hard drive. I went with the defaults during the install process (not minimal install), apparently python and psql were included (as I expected). Next, when I downloaded and installed Ambari 1.5 everything I needed was there. Probably in the end it will be less work for you to start over and make a fresh and full install of CentOS 6.4 or 5.

    Collapse
    #54349

    William Degnan
    Participant

    I just installed 1.5, I on top of CentOS 6.5, perhaps you need to re-install CentOS using a full install. I used the LIVE CD and chose the install option and next I installed Ambari 1.5 without issues (until I got to the CONFIRM HOST stage)…that’s a whole different story.

    Collapse
Viewing 20 replies - 1 through 20 (of 20 total)