Home Forums HDP on Linux – Installation Ambari install and python conflicts

Tagged: 

This topic contains 7 replies, has 3 voices, and was last updated by  Seth Lyubich 1 year, 4 months ago.

  • Creator
    Topic
  • #23369

    Tona Medina
    Member

    Hi all,
    I’m trying to install Ambari on CentOS 6.4 following these instructions:

    http://docs.hortonworks.com/HDPDocuments/HDP1/HDP-1.2.3.1/bk_using_Ambari_book/content/ambari-chap2.1.2.html

    All goes well until I run:
    yum install ambari-server

    After I confirm the install I see plenty of lines like this:

    file /usr/lib64/python2.6/zipfile.pyo from install of python26-2.6.8-2.el5.x86_64 conflicts with file from package python-2.6.6-36.el6.x86_64

    Ambari doesn’t seem to have been installed.
    What should I do to continue? I really don’t want to uninstall the OS provided python, but should I? This is brand new “minimal” CentOS install.

    Thanks,
    Tona

    PS: the docs call to uninstall postgres, but it doesn’t say anything about Python on for CentOS v6

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

You must be logged in to reply to this topic.

  • Author
    Replies
  • #23513

    Seth Lyubich
    Keymaster

    Hi Tona,

    Thanks for letting us know and using HDP.

    Seth

    Collapse
    #23511

    Tona Medina
    Member

    Thanks Sef!
    Yep that was it!!

    # rpm -qa | grep -i ambari
    ambari-1.x-1.el5.noarch

    I had apparently installed the wrong ambari repository.

    http://docs.hortonworks.com/HDPDocuments/HDP1/HDP-1.2.3.1/bk_using_Ambari_book/content/ambari-chap2-1.html

    Uninstalling that repo, and installing the correct one solved it.
    I’m back on track.

    Thanks again!
    Tona

    Collapse
    #23506

    Seth Lyubich
    Keymaster

    Hi Tona,

    Can you please check to make sure that you installed repository for CentOS6 (not 5)?

    http://docs.hortonworks.com/HDPDocuments/HDP1/HDP-1.2.3.1/bk_using_Ambari_book/content/ambari-chap2.1.2.html

    you should be able to verify by running ‘yum repolist’.

    Hope this helps,

    Thanks,
    Seth

    Collapse
    #23451

    Tona Medina
    Member

    I think it’s the other way around…
    I do have the el6 rpm: python-2.6.6-36.el6.x86_64, that came with CentOS 6.4 (DVD iso). What I think is happening is that the ‘yum install ambari-server’ was trying to install python26-2.6.8-2.el5.x86_64 on top of it, and was finding conflicts

    Here are my python related rpms:

    # rpm -qa |grep python
    python-libs-2.6.6-36.el6.x86_64
    python-iniparse-0.3.1-2.1.el6.noarch
    python-pycurl-7.19.0-8.el6.x86_64
    newt-python-0.52.11-3.el6.x86_64
    python-2.6.6-36.el6.x86_64
    rpm-python-4.8.0-32.el6.x86_64
    python-urlgrabber-3.9.1-8.el6.noarch

    So, should I then uninstall python-2.6.6-36.el6.x86_64, and python-libs-2.6.6-36.el6.x86_64, and let the Ambari installer install the el5 rpm (python26-2.6.8-2.el5.x86_64)? In that case, I would end up with an el5 rpm on a CentOS 6.x.

    Collapse
    #23446

    Seth Lyubich
    Keymaster

    Hi Tona,

    You can try ‘rpm −e python26-2.6.8-2.el5′ to remove conflicting package. You might need to delete python26-libs 2.6.8-2.el5 as well.

    It is strange that el5 rpm is found on your Centos 6. Do you know where it got installed from?

    Hope this helps,

    Thanks,
    Seth

    Collapse
    #23414

    Tona Medina
    Member

    Thanks!
    I see… However, the table is a bit confusing though. For “CentOS v6″, which I assumed included CentOS 6.4, it only lists postgres packages, but not python.

    Do you have any recommendations on how to uninstall python included with the OS?

    cheers!
    Tona

    Collapse
    #23402

    tedr
    Moderator

    Hi Tona,

    Thanks for trying Hortonworks Data Platform.

    Actually the documentation does say to remove any packages that are different from the list in Chapter 1.5.1, and we list python26-libs 2.6.8-2.el5.

    Thanks,
    Ted.

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