HDP on Linux – Installation Forum

Ambari fails to install on CentOS 5

  • #48882
    Rajesh Jain
    Participant

    I have this long error message.

    —-
    STDERR
    scp /usr/lib/python2.6/site-packages/ambari_server/os_type_check.sh done for host APM-HORTONWORKS1-MASTER, exitcode=0
    Copying os type check script finished
    Running os type check…
    STDOUT
    Cluster primary OS type is redhat5 and local OS type is centos5^M

    STDERR
    tcgetattr: Invalid argument
    Connection to APM-HORTONWORKS1-MASTER closed.^M
    SSH command execution finished for host APM-HORTONWORKS1-MASTER, exitcode=0
    Running os type check finished
    STDOUT
    sudo-1.7.2p1-10.el5^M

    STDERR
    tcgetattr: Invalid argument
    Connection to APM-HORTONWORKS1-MASTER closed.^M
    SSH command execution finished for host APM-HORTONWORKS1-MASTER, exitcode=0
    Checking ‘sudo’ package finished
    Copying repo file to ‘tmp’ folder…
    STDOUT

    STDERR
    scp /etc/yum.repos.d/ambari.repo done for host APM-HORTONWORKS1-MASTER, exitcode=0
    Moving file to repo dir…
    STDOUT

    STDERR
    tcgetattr: Invalid argument
    Connection to APM-HORTONWORKS1-MASTER closed.^M
    SSH command execution finished for host APM-HORTONWORKS1-MASTER, exitcode=0
    Copying setup script file…
    STDOUT

    STDERR
    scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py done for host APM-HORTONWORKS1-MASTER, exitcode=0
    Copying files finished
    Running setup agent…
    STDOUT
    http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.16/repos/centos5/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, ‘Temporary failure in name resolution’)>^M

    Trying other mirror.^M
    http://mirror.atlanticmetro.net/centos/5.10/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, ‘Temporary failure in name resolution’)>^M
    Trying other mirror.^M
    ….. more

    Error Downloading Packages:^M
    ambari-agent-1.4.4.23-1.x86_64: failure: x86_64/ambari-agent-1.4.4.23-1.x86_64.rpm from Updates-ambari-1.4.4.23: [Errno 256] No more mirrors to try.^M

    {‘exitstatus': 1, ‘log': (‘Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: http://ftp.ussg.iu.edu\n * extras: mirror.nyi.net\n * updates: centos.gravityfish.com\nSetting up Install Process\nResolving Dependencies\n–> Running transaction check\n—> Package ambari-agent.x86_64 0:1.4.4.23-1 set to be updated\n–> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n ambari-agent x86_64 1.4.4.23-1 Updates-ambari-1.4.4.23 7.1 M\n\nTransaction Summary\n================================================================================\nInstall 1 Package(s)\nUpgrade 0 Package(s)\n\nTotal download size: 7.1 M\nDownloading Packages:\n’, None)}^M
    STDERR
    tcgetattr: Invalid argument
    Connection to APM-HORTONWORKS1-MASTER closed.^M
    SSH command execution finished for host APM-HORTONWORKS1-MASTER, exitcode=1
    Setting up agent finished
    ERROR: Bootstrap of

to create new topics or reply. | New User Registration

  • Author
    Replies
  • #48928
    Jeff Sposetti
    Moderator

    Do you have internet access on your machine? Or do you have to go thru a proxy?

    Can you reach this URL from that machine?

    http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.16/repos/centos5/repodata/repomd.xml

    #48930
    Rajesh Jain
    Participant

    Yes, I have internet access and I go through a proxy. I have also configured the proxy settings -D (Java Opts) in the Ambari file.
    I can do a wget for that repo file from the server.

    Do you think Ambari is not recognizing the proxy settings?

    #50417
    Argil Data
    Participant

    I am having the same error. Was this resolved. I did a google search and a lot of them are having the same issue.
    The message is coming from this file.
    /usr/lib/python2.6/site-packages/ambari_server/os_type_check.sh

    Any help will be appreciated. I even tried hardcoding this variable cluster_os=$1 to cluster_os=$C6. No luck.

    #50474
    Jeff Sposetti
    Moderator

    Looks like the ambari machine cannot get to the HDP Stack repositories. Can you confirm the machines can reach the repo metadata?

    http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.16/repos/centos5/repodata/repomd.xml

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.