incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject svn commit: r1497104 - /incubator/ambari/trunk/ambari-server/src/main/python/setupAgent.py
Date Wed, 26 Jun 2013 21:21:03 GMT
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"])



Mime
View raw message