Home Forums HDP on Linux – Installation "Requires: python26" when installing ambari-agent

Tagged: 

This topic contains 13 replies, has 6 voices, and was last updated by  Neeraj Garg 2 months ago.

  • Creator
    Topic
  • #13887

    Weiming Shi
    Member

    When i tried to install ambari-agent manually on a four-node cluster loaded with Redhat 6 (2.6.32-279).
    Two of them succeeded, but the other two failed during the stage of resolving dependency as shown below:

    Resolving Dependencies
    Skipping filters plugin, no data
    –> Running transaction check
    —> Package ambari-agent.x86_64 0:1.2.0.1-1 will be installed
    –> Processing Dependency: python26 for package: ambari-agent-1.2.0.1-1.x86_64
    –> Finished Dependency Resolution
    Error: Package: ambari-agent-1.2.0.1-1.x86_64 (AMBARI-1.x)
    Requires: python26
    You could try using –skip-broken to work around the problem
    ** Found 67 pre-existing rpmdb problem(s), ‘yum check’ output follows:
    … (omitted for brevity)

    The problem seems to be caused by the lack of python on the system.
    However, i am pretty sure python2.6 is installed on these two failed nodes just as the other successful nodes.

    I would appreciate it if anyone can show some hint to resolve this issue.

    Thanks

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

You must be logged in to reply to this topic.

  • Author
    Replies
  • #54251

    Neeraj Garg
    Participant

    Hi,

    I’ve been trying to install ambari1.5 version. getting following error when I run “yum install ambari-agent”. please suggest some workaround this.
    Error: Package: ambari-agent-1.5.1.110-1.x86_64 (Updates-ambari-1.5.1)
    Requires: python26
    You could try using –skip-broken to work around the problem

    ** Found 1 pre-existing rpmdb problem(s), ‘yum check’ output follows:
    jzmq-2.1.0-1.x86_64 has missing requires of zeromq = (’0′, ’2.1.7′, None)

    Thank You,
    Neeraj

    Collapse
    #15216

    tedr
    Member

    Hi Gunnar,

    Thanks for letting us know! We will definitely keep this in mind for others who run into this problem.

    Ted.

    Collapse
    #15209

    Hi Ted,

    That’s it! I had downloaded the CentOS 6 RPM for the Ambari Server but, for some reason, downloaded the CentOS 5 RPM for the Ambari Agent nodes. Duh!

    Thanks for the help!

    Gunnar

    Collapse
    #15196

    tedr
    Member

    Hi Gunnar,

    what do you get when you do a “yum info ambari”? I ask this as the only reason our developers can think of that would cause ambari-agent to look for python at all is that you have used the CentOS 5 repo, They say that if the CentOS 6 repo is used the install assumes that the correct python is already installed.

    Thanks,
    Ted.

    Collapse
    #15180

    Hi Ted:

    $ which python
    /usr/bin/python

    $ /usr/bin/python -V
    Python 2.6.5

    Thanks,

    Gunnar

    Collapse
    #15169

    tedr
    Member

    Hi Gunnar,

    What do you get when you do a “which python”?

    Thanks,
    Ted.

    Collapse
    #15137

    To complement:

    whereis python shows:

    python: /usr/bin/python2.6-config /usr/bin/python /usr/bin/python2.6 /usr/lib/python2.6 /usr/lib64/python2.6 /usr/include/python2.6 /usr/share/man/man1/python.1.gz

    Collapse
    #15136

    Hi Larry,

    Yes, I have all those prerequisites. Further, I successfully installed and configured Ambari server using the rpm rather than the yum install. However, the documentation doesn’t contain information where to find the Ambari agent rpm so I get stuck on:

    —> Package ambari-agent.x86_64 0:1.2.0.1-1 will be installed
    –> Processing Dependency: python26 for package: ambari-agent-1.2.0.1-1.x86_64
    –> Finished Dependency Resolution
    Error: Package: ambari-agent-1.2.0.1-1.x86_64 (AMBARI-1.x)
    Requires: python26

    yum list python shows:

    Installed Packages
    python.i686 2.6.5-3.el6 @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
    python.x86_64 2.6.5-3.el6 @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0

    python -V shows:
    Python 2.6.5

    yum install python26 shows:
    Loaded plugins: refresh-packagekit
    Setting up Install Process
    No package python26 available.
    Error: Nothing to do

    So, I’m not sure how the python26 dependency is done but it doesn’t seem correct given that I am running Python 2.6.5?

    Thanks,

    Gunnar

    Collapse
    #15024

    Larry Liu
    Moderator

    Hi, Gunnar,

    I am wondering if you have a clean installation of OS. Can you please also check the prerequisites?

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

    Larry

    Collapse
    #14973

    I have the same problem when trying to install the Ambari server:

    Resolving Dependencies
    –> Running transaction check
    —> Package ambari-server.noarch 0:1.2.0.1-1 will be installed
    –> Processing Dependency: postgresql-server >= 8.1 for package: ambari-server-1.2.0.1-1.noarch
    –> Processing Dependency: python26 for package: ambari-server-1.2.0.1-1.noarch
    –> Running transaction check
    —> Package ambari-server.noarch 0:1.2.0.1-1 will be installed
    –> Processing Dependency: python26 for package: ambari-server-1.2.0.1-1.noarch
    —> Package postgresql-server.x86_64 0:8.4.9-1.el6_1.1 will be installed
    –> Finished Dependency Resolution
    Error: Package: ambari-server-1.2.0.1-1.noarch (AMBARI-1.x)
    Requires: python26
    You could try using –skip-broken to work around the problem
    ** Found 2 pre-existing rpmdb problem(s), ‘yum check’ output follows:
    boost-python-1.41.0-11.el6_1.2.x86_64 is a duplicate with boost-python-1.41.0-11.el6.i686
    libicu-4.2.1-9.1.el6_2.x86_64 is a duplicate with libicu-4.2.1-9.el6.i686

    yum info python yields:

    Available Packages
    Name : python
    Arch : x86_64
    Version : 2.6.6
    Release : 29.el6
    Size : 4.8 M
    Repo : RedHat-6.2Server-x86_64-Server

    Collapse
    #13910

    Jeff Sposetti
    Moderator

    On those failing machines, if you try to run “yum install ambari-agent” from a terminal prompt, what is the output? As well, what is the output from “yum repolist”?

    Collapse
    #13889

    Weiming Shi
    Member

    Hi Jeff,

    I have checked the installed version and info of python on these nodes.
    python -V returns:
    Python 2.6.6

    yum info python returns:
    Installed Packages
    Name : python
    Arch : x86_64
    Version : 2.6.6
    Release : 29.el6_3.3
    Size : 20 M
    Repo : installed
    From repo : rhel-x86_64-server-6
    … (omitted for brevity)

    They are the same.

    The only difference that i see is the order returned by “whereis python”.
    Successful node shows: python: /usr/bin/python /usr/bin/python2.6-config /usr/bin/python2.6 /usr/lib/python2.6 /usr/lib64/python2.6 /usr/include/python2.6 /usr/share/man/man1/python.1.gz

    Failed node shows: python: /usr/bin/python2.6-config /usr/bin/python2.6 /usr/bin/python /usr/lib/python2.6 /usr/lib64/python2.6 /usr/include/python2.6 /usr/share/man/man1/python.1.gz

    Thanks

    Collapse
    #13888

    Jeff Sposetti
    Moderator

    Run python -V to see the python version installed. Also, run “yum info python” to see which python modules are installed. Compare between the failing and successful nodes.

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