Home Forums HDP on Linux – Installation Ambari create invalid hdp.repo file in /etc/yum.repos.d

This topic contains 8 replies, has 2 voices, and was last updated by  Igor Skokov 7 months, 1 week ago.

  • Creator
    Topic
  • #48873

    Igor Skokov
    Participant

    Hello,
    when i try to install HDP 1.3.3(CentOS 6.5 x64) i get error:
    err: /Stage[main]/Hdp-hadoop/Hdp-hadoop::Package[hadoop]/Hdp::Package[hadoop 64]/Hdp::Package::Process_pkg[hadoop 64]/Package[hadoop-sbin]/ensure: change from absent to present failed: Execution of ‘/usr/bin/yum -d 0 -e 0 -y install hadoop-sbin’ returned 1: Error: Nothing to do

    err: /Stage[main]/Hdp-hadoop/Hdp-hadoop::Package[hadoop]/Hdp::Package[hadoop 64]/Hdp::Package::Process_pkg[hadoop 64]/Package[hadoop-libhdfs]/ensure: change from absent to present failed: Execution of ‘/usr/bin/yum -d 0 -e 0 -y install hadoop-libhdfs’ returned 1: Error: Nothing to do

    I manually check on hosts availability of hadoop-sbin and other packages. I figure out that Ambari create hdp.repo file in /etc/yum.repos.d with next content:
    [HDP-1.3.3]
    name=HDP
    baseurl=http://s3.amazonaws.com/public-repo-1.hortonworks.com/HDP/centos6/1.x/updates/1.3.3.2
    path=/
    enabled=1
    gpgcheck=0

    But real file on http://s3.amazonaws.com/public-repo-1.hortonworks.com/index.html#/HDP/centos6/1.x/updates/1.3.3.2 contains following:
    [HDP-1.x]
    name=Hortonworks Data Platform Version – HDP-1.x
    baseurl=http://public-repo-1.hortonworks.com/HDP/centos6/1.x/GA
    gpgcheck=1
    gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
    enabled=1
    priority=1

    [HDP-UTILS-1.1.0.16]
    name=Hortonworks Data Platform Utils Version – HDP-UTILS-1.1.0.16
    baseurl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.16/repos/centos6
    gpgcheck=1
    gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
    enabled=1
    priority=1

    [Updates-HDP]
    name=HDP – Updates
    baseurl=http://public-repo-1.hortonworks.com/HDP/centos6/1.x/updates/1.3.3.2
    gpgcheck=1
    gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
    enabled=1
    priority=1

    If i manually add this file to /etc/yum.repos.d then all missed packages appear.
    This is bug or i do something wrong?

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

You must be logged in to reply to this topic.

  • Author
    Replies
  • #49239

    Igor Skokov
    Participant

    Yes, i had tried all possible URLs

    Collapse
    #49236

    Jeff Sposetti
    Moderator

    You’ll want to use the default Base URLs for that Stack, and not the http://s3.amazon… Base URL.

    Did you have issues during installing just using the default http://public-repo-1.hortonworks.com/HDP/centos6/1.x/updates/1.3.3.0 Base URL in place?

    Collapse
    #49235

    Igor Skokov
    Participant

    baseurl=http://s3.amazonaws.com/public-repo-1.hortonworks.com/HDP/centos6/1.x/updates/1.3.3.2
    This URL is one of my experiment URLs(after previous failures).

    Main URL which I used is: http://public-repo-1.hortonworks.com/HDP/centos6/1.x/updates/1.3.3.2

    Collapse
    #49234

    Jeff Sposetti
    Moderator

    Hmm…Ambari should not be generating that Base URL for the 1.3.3 repo.

    During install, on the “Select Stack > Advanced Repository Options” section, what repository Base URLs are shown when you select HDP 1.3.3 Stack?

    Collapse
    #49226

    Igor Skokov
    Participant

    –°ertainly.
    Ambari server version: 1.4.4.23

    Collapse
    #49223

    Jeff Sposetti
    Moderator

    Can you confirm which version of Ambari you are using?

    “ambari-server –version” or “yum info ambari-server”

    Collapse
    #49188

    Igor Skokov
    Participant

    I install CentOS 6.4 and now I have no bugs. It seems that CentOS 6.5 incompatible with Ambari.

    Collapse
    #48955

    Igor Skokov
    Participant

    Anyone here?

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