ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk" <>
Subject Re: Review Request 19541: Host registering failure from primary/agent os checking on centos6
Date Mon, 24 Mar 2014 11:00:31 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated March 24, 2014, 11 a.m.)

Review request for Ambari and Dmytro Sen.

Bugs: AMBARI-4523

Repository: ambari


I am using Ambari ( for hadoop cluster installation 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 
During the ambari agent bootstrap/host 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 (,based
on os release file) and registering script ( based on os hardware
profile) .

I just share to see if anyone can fix the issue.

BTW, for me, to solve the problem, I manually edited the script files to make it work temporarily:

To avoid warning of agent bootstrapping, in, add current_os=$RH6 above the
echo line or add res=0 after case statement;
To make the node register work, in, add data=data.replace('centos linux','redhat')
before sending registering request;


Diffs (updated)

  ambari-agent/pom.xml 352789a 
  ambari-agent/src/main/python/ambari_agent/ 181f370 
  ambari-agent/src/main/python/ambari_agent/ 83429de 
  ambari-agent/src/main/python/ambari_agent/ bdfc587 
  ambari-agent/src/main/python/resource_management/core/ a3e61b3 
  ambari-agent/src/test/python/ambari_agent/ 987308e 
  ambari-common/src/main/python/common_functions/ PRE-CREATION 
  ambari-common/src/main/python/common_functions/ PRE-CREATION 
  ambari-server/pom.xml c536b96 
  ambari-server/src/main/python/ 5cec271 
  ambari-server/src/main/python/ 9b4140d 
  ambari-server/src/main/python/ 83e64d1 
  ambari-server/src/test/python/ 9a80213 



mvn test fine


Andrew Onischuk

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message