소스 검색

AMBARI-2500. Host confirmation fails if ambari-agent is already run. (Myroslav via mahadev)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1497104 13f79535-47bb-0310-9956-ffa450edef68
Mahadev Konar 12 년 전
부모
커밋
ec1a7eb6a6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ambari-server/src/main/python/setupAgent.py

+ 1 - 1
ambari-server/src/main/python/setupAgent.py

@@ -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"])