These days, I am updating previous Apache Hadoop cluster with HDP 2.0 stack. Using Ambari (220.127.116.11) 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.