The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

HDP on Linux – Installation Forum

Ambari agent host cannot reach Ambari Server

  • #58289
    saraha
    Participant

    I am having issues with the connection between ambari Server and host. I am completely new to Linux and any help would be greatly appreciated. I’m using CentOS and a 2 node cluster. Please let me know if I need to provide anymore information.
    Thanks!

    ==Copying common functions script…
    scp /usr/lib/python2.6/site-packages/ambari_commons
    host=donkeykong.xxxx.com, exitcode=0
    Command end time ##
    ==Copying OS type check script…
    Command start time 2014-08-04 14:48:37

    scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
    host=donkeykong.xxx.com, exitcode=0
    Command end time 2014-08-04 14:48:37

    ==========================
    Running OS type check…
    ==========================

    Command start time 2014-08-04 14:48:37
    Cluster primary/cluster OS type is redhat6 and local/current OS type is redhat6

    Connection to donkeykong.xxx.com closed.
    SSH command execution finished
    host=donkeykong.xxx.com, exitcode=0
    Command end time 2014-08-04 14:48:38

    ==========================
    Checking ‘sudo’ package on remote host…
    ==========================

    Command start time 2014-08-04 14:48:38
    sudo-1.8.6p3-12.el6.x86_64

    Connection to donkeykong.xxx.com closed.
    SSH command execution finished
    host=donkeykong.xxx.com, exitcode=0
    Command end time 2014-08-04 14:48:39

    ==========================
    Copying repo file to ‘tmp’ folder…
    ==========================

    Command start time 2014-08-04 14:48:39

    scp /etc/yum.repos.d/ambari.repo
    host=donkeykong.xxx.com, exitcode=0
    Command end time 2014-08-04 14:48:39

    ========Moving file to repo dir…
    Command start time 2014-08-04 14:48:39

    Connection to donkeykong.xxx.com closed.
    SSH command execution finished
    host=donkeykong.xxx.com, exitcode=0
    Command end time 2014-08-04 14:48:39

    ==Copying setup script file…

    Command start time 2014-08-04 14:48:39

    scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
    host=donkeykong.xxx.com, exitcode=0
    Command end time 2014-08-04 14:48:40

    ========Running setup agent script…

    Command start time 2014-08-04 14:48:40
    {‘exitstatus’: 1, ‘log’: “Host registration aborted. Ambari Agent host cannot reach Ambari Server ‘kingjoffrey.xxx.com:8080’. Please check the network connectivity between the Ambari Agent host and the Ambari Server”}

    Connection to donkeykong.xxx.com closed.
    SSH command execution finished
    host=donkeykong.xxx.com, exitcode=1
    Command end time 2014-08-04 14:48:40

    ERROR: Bootstrap of host donkeykong.xxx.com fails because previous action finished with non-zero exit code (1)
    ERROR MESSAGE: tcgetattr: Invalid argument
    Connection to donkeykong.xxxx.com closed.

    STDOUT: {‘exitstatus’: 1, ‘log’: “Host registration aborted. Ambari Agent host cannot reach Ambari Server ‘kingjoffrey.xxx.com:8080’. Please check the network connectivity between the Ambari Agent host and the Ambari Server”}

    Connection to donkeykong.xxx.com closed

  • Author
    Replies
  • #58814
    Sanjeev
    Moderator

    Hi Saraha,

    Are you able to resolve both the hosts using the hostnames?

    Thanks
    Sanjeev

The forum ‘HDP on Linux – Installation’ is closed to new topics and replies.

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.