Home Forums HDP on Linux – Installation Host registering failure & solution issue with primary/agent os checking

This topic contains 4 replies, has 3 voices, and was last updated by  Perry Tian 4 months, 3 weeks ago.

  • Creator
    Topic
  • #48067

    Perry Tian
    Participant

    These days, I am updating previous Apache Hadoop cluster with HDP 2.0 stack. Using Ambari (1.4.3.38) for cluster installation,provision and management.
    All the cluster nodes are built on centos 6.0.

    During the ambari server installation, ambari-server recognized the primary/cluster os as redhat6 (see ambari.properties).
    During the ambari agent bootstrap/node register, ambari-agent regonized the agent os as centos linux6 (see log).

    From log files (ambari-server.log, ambari-agent.log), I found the inconsistence caused the warning of ambari-agent bootstrapping and failure of host registering.

    I’m still not sure why this happen, but I guess it’s caused by the differene of os checking methods among ambari server side code, ambari-agent bootstrap script (os_type_check.sh,based on os release file) and registering script (Controller.py/Register.py based on os hardware profile) .

    To fix the problem I manually edited the script files:
    To avoid warning of agent bootstrapping, in os_type_check.sh, add “current_os=$RH6″ above the echo line or add “res=0″ after case statement;
    To make the host register work, in Controller.py, add “data=data.replace(‘centos linux’,'redhat’)” before sending registering request;

    Then retried, it works.

    Definitely, this is not a good solution, but I just want to share to see if anyone can run across the issue.

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

You must be logged in to reply to this topic.

  • Author
    Replies
  • #49479

    Perry Tian
    Participant

    Hi,Iryna Kuzmenko,

    Sorry for the late reply~

    Each cluster node is built on CentOS 6.0. Regarding your scripts, the running results:

    1) cat /etc/centos-release
    CentOS Linux release 6.0 (Final)

    2) cat /etc/redhat-release
    CentOS Linux release 6.0 (Final)

    3) run: python my_check_os.py
    (‘CentOS Linux’,’6.0′,’Final’)
    (‘redhat’,’6.0′,’Final’)

    Hope it’s useful from your side.

    Thank.

    Perry

    Collapse
    #48733

    Iryna Kuzmenko
    Participant

    Hi Perry!

    Could you, please, check the following and send me the results?

    1) cat /etc/centos-release
    2) cat /etc/redhat-release
    3) run: python my_check_os.py
    Where my_check_os.py:
    import platform
    print platform.linux_distribution()
    print platform.linux_distribution(None, None, None, ['SuSE', 'redhat' ], 0)

    Thank you,
    Iryna

    Collapse
    #48732

    Iryna Kuzmenko
    Participant

    Hi Perry!

    Could you, please, check the following and send me the results?

    1) cat /etc/centos-release
    2) cat /etc/redhat-release
    3) run: python my_check_os.py
    Where my_check_os.py:
    import platform
    print platform.linux_distribution()
    print platform.linux_distribution(None, None, None, ['SuSE', 'redhat' ], 0)

    Thank you,
    Iryna

    Collapse
    #48071

    Kenny Zhang
    Moderator

    Hi Perry,

    Thanks for sharing this with us. Glad to hear it works for you.

    Thanks,
    Kenny

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