HDP on Linux – Installation Forum

Ambari create invalid hdp.repo file in /etc/yum.repos.d

  • #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?

to create new topics or reply. | New User Registration

  • Author
    Replies
  • #48955
    Igor Skokov
    Participant

    Anyone here?

    #49188
    Igor Skokov
    Participant

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

    #49223
    Jeff Sposetti
    Moderator

    Can you confirm which version of Ambari you are using?

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

    #49226
    Igor Skokov
    Participant

    Сertainly.
    Ambari server version: 1.4.4.23

    #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?

    #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

    #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?

    #49239
    Igor Skokov
    Participant

    Yes, i had tried all possible URLs

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

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

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.