Home Forums Ambari Error in installattion using Ambari from a Local Repository

This topic contains 7 replies, has 2 voices, and was last updated by  Mitali Sodhi 5 months, 3 weeks ago.

  • Creator
    Topic
  • #47322

    Mitali Sodhi
    Participant

    Hi,

    I am installing a four-node cluster using Ambari on CentOS6. I have built a local repository from where the packages can be downloaded. The local repository and the Ambari server are running on the master node in the cluster. These are the steps that I have followed till now:
    1. Set up a password-less ssh from the Ambari Server to rest of the nodes
    2. Installed and set up Apache httpd server
    3. Configured the local repository that is running on Apache httpd server. I followed the steps from here for setting up local repositories:

    http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.0.8.0/bk_reference/content/deployinghdp_appendix_chap4_3_1_2.html

    Downloaded the three repos for Centos6(HDP, HDP-UTILS and Ambari)
    4. These repositories are successfully reflected on my Apache Server. Here are the details (on http://node1.hadoop.com/hdp/)
    Index of /hdp
    HDP-UTILS-1.1.0.16/
    HDP/
    ambari/
    ambari.reo
    hdp-util.repo
    hdp.repo

    5. Then, I download and edit the ambari.repo file accordingly. I copy this file to /etc/yum.repos.d/ folder of every node using scp. Here are the contents of it:
    [ambari-1.x]
    name=Ambari 1.x
    baseurl=http://node1.hadoop.com/hdp/ambari/centos6/1.x/updates/1.4.3.38/
    gpgcheck=1
    gpgkey=http://node1.hadoop.com/hdp/ambari/centos6/1.x/updates/1.4.3.38/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://node1.hadoop.com/hdp/HDP-UTILS-1.1.0.16/repos/centos6/
    gpgcheck=1
    gpgkey=http://node1.hadoop.com/hdp/ambari/centos6/1.x/updates/1.4.3.38/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
    enabled=1
    priority=1

    [HDP-2.0.6.0]
    name=Hortonworks Data Platform HDP-2.0.6.0
    baseurl=http://node1.hadoop.com/hdp/HDP-UTILS-1.1.0.16/repos/centos6/
    gpgcheck=1
    gpgkey=http://public-repo-1.hortonworks.com/HDP/$os/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
    enabled=1
    priority=1

    Since there were three .repo files (hdp.repo, ambari.repo and HDP.repo) so I change the baseurl in every file according to my web-server and place them in /etc/repos.d/ of each node.
    5. Then in the Ambari Installation Wizard, I fill the following entries at each step :
    a) Step 2: Install options: In this I give the URL of my local repository for CentOS6 as http://node1.hadoop.com/hdp/HDP/centos6/2.x/updates/2.0.6.0/
    b) Step 3: Confir hosts : success on all 4
    c) Step 4: Choose services : Selected all
    d) Step 5,6,7,8 : Done
    e) Step 9 : Install, Start and Test:
    It is getting failed and I am getting this error :
    notice: Finished catalog run in 0.03 seconds err: /Stage[1]/Hdp::Snmp/Hdp::Package[snmp]/Hdp::Package::Process_pkg[snmp]/Package[net-snmp-utils]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install net-snmp-utils' returned 1: Error Downloading Packages: 1:net-snmp-utils-5.5-49.el6.x86_64: failure: Packages/net-snmp-utils-5.5-49.el6.x86_64.rpm from base: [Errno 256] No more mirrors to try.

    Can anyone help me to solve this error?

    Thanks.

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

The topic ‘Error in installattion using Ambari from a Local Repository’ is closed to new replies.

  • Author
    Replies
  • #47621

    Mitali Sodhi
    Participant

    Hi,

    So, the issue got resolved. The problem was in the ambari.repo file. The name of the packages were not written correctly. The .repo file that comes with the tar balls has three packages listed.
    1. [ambari-1.x]
    2. [HDP-UTILS-1.1.0.16]
    3. [Updates-ambari-1.4.3.38]

    While, hdp.repo in the tar ball contains :
    1. [HDP-2.x]
    2. [HDP-UTILS-1.1.0.16]
    3. [HDP]

    So, this creates a confusion regarding the correct names that should be given to the packages while installing from the local repository. As, the local repository has three packages : HDP, HDP-UTILS and Ambari. So, the convention followed in the inbuilt ambari.repo file does not actually match with the local repo packages. The names for the packages that I followed is:
    1. [Ambari-1.4]
    2. [HDP-UTILS-1.1.0.16]
    3. [HDP-2.0.6.0]
    This worked for me and packages got installed. I think the guidelines to change the names of the packages should be included in the documentation as it was very difficult to debug that the installation was failing because of it. Also, these names are case sensitive. “ambari-1.4″ didn’t work, but “Ambari-1.4″ did. In the documentation, the sample “hdp.repo” file has “ambari-1.x” as one of the package names. This should be corrected.

    Thanks,
    Mitali

    Collapse
    #47460

    Jeff Sposetti
    Moderator

    On the Ambari Server, your ambari.repo should also be setup for local repositories. That .repo file includes HDP-UTILS and AMBARI repos. Make sure that file has the right repos, since that is distributed to the hosts during install.

    Collapse
    #47458

    Mitali Sodhi
    Participant

    Hi,
    I have realized the errors are coming due to two main reasons:
    1. I am able to give the link of only repository in the first step of installation in the Ambari Install Wizard. So, the packages in that repository are getting installed. But, the packages in other repository (Amabari/HDP-UTILS) are not getting installed.
    </img>

    2. “yum” command is only able to install packages from the web-server and not from local repository on giving "yum install <package_name>"
    But, it is not able to detect and install the packages from the local repository, unless I give "yum localinstall <package_name>"
    So, even if I have changed the .repo file in /etc/yum.repos.d/, still why the packages are not getting from the local repository?

    Collapse
    #47447

    Mitali Sodhi
    Participant

    Hi,
    This is what I get on “yum info net-snmp-utils” :


    [root@node1 yum.repos.d]# yum info net-snmp-utils
    Loaded plugins: fastestmirror, security
    Loading mirror speeds from cached hostfile
    * base: centos.aol.in
    * extras: centos.aol.in
    * updates: centos.aol.in
    http://centos.aol.in/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'centos.aol.in'"
    Trying other mirror.
    http://centos.mirror.net.in/centos/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'centos.mirror.net.in'"
    Trying other mirror.
    http://centosmirror.go4hosting.in/centos/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'centosmirror.go4hosting.in'"
    Trying other mirror.
    .....
    Trying other mirror.
    Available Packages
    Name : net-snmp-utils
    Arch : x86_64
    Epoch : 1
    Version : 5.5
    Release : 49.el6
    Size : 173 k
    Repo : base
    Summary : Network management utilities using SNMP, from the NET-SNMP project
    URL : http://net-snmp.sourceforge.net/
    License : BSD
    Description : The net-snmp-utils package contains various utilities for use with the
    : NET-SNMP network management project.
    :
    : Install this package if you need utilities for managing your network
    : using the SNMP protocol. You will also need to install the net-snmp
    : package.

    Collapse
    #47446

    Jeff Sposetti
    Moderator

    Thanks. What if you run “yum info net-snmp-utils”, it show that package available and in the base repo?

    Collapse
    #47395

    Mitali Sodhi
    Participant

    Hi,

    Yes, I have base OS repo available. This is what I get when on “yum repolist” :
    HDP-2.0.6 HDP
    HDP-2.0.6.0 Hortonworks Data Platform HDP-2.0.6.0
    HDP-UTILS-1.1.0.16 Hortonworks Data Platform Utils Version – HDP-UTILS-1.1.
    amabari-1.x Ambari 1.x
    base CentOS-6 – Base
    extras CentOS-6 – Extras
    updates CentOS-6 – Updates

    Collapse
    #47331

    Jeff Sposetti
    Moderator

    Do you have the base OS repos available? I believe that is where that package is available.

    What repos do you see from running “yum repolist”?

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