You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ma...@apache.org on 2013/06/26 23:21:03 UTC
svn commit: r1497104 -
/incubator/ambari/trunk/ambari-server/src/main/python/setupAgent.py
Author: mahadev
Date: Wed Jun 26 21:21:03 2013
New Revision: 1497104
URL: http://svn.apache.org/r1497104
Log:
AMBARI-2500. Host confirmation fails if ambari-agent is already run. (Myroslav via mahadev)
Modified:
incubator/ambari/trunk/ambari-server/src/main/python/setupAgent.py
Modified: incubator/ambari/trunk/ambari-server/src/main/python/setupAgent.py
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-server/src/main/python/setupAgent.py?rev=1497104&r1=1497103&r2=1497104&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-server/src/main/python/setupAgent.py (original)
+++ incubator/ambari/trunk/ambari-server/src/main/python/setupAgent.py Wed Jun 26 21:21:03 2013
@@ -77,7 +77,7 @@ def configureAgent(server_hostname):
def runAgent(passPhrase, expected_hostname):
os.environ[AMBARI_PASSPHRASE_VAR] = passPhrase
- agent_retcode = subprocess.call("/usr/sbin/ambari-agent start --expected-hostname=" + expected_hostname, shell=True)
+ agent_retcode = subprocess.call("/usr/sbin/ambari-agent restart --expected-hostname=" + expected_hostname, shell=True)
try:
ret = execOsCommand(["tail", "-20", "/var/log/ambari-agent/ambari-agent.log"])