You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vi...@apache.org on 2012/06/07 04:24:04 UTC
svn commit: r1347314 - in /incubator/ambari/branches/ambari-186: CHANGES.txt
hmc/php/util/sequentialScriptRunner.php
Author: vikram
Date: Thu Jun 7 02:24:04 2012
New Revision: 1347314
URL: http://svn.apache.org/viewvc?rev=1347314&view=rev
Log:
AMBARI-487. Add nodes with external name on AWS causes issues. (Contributed by Vikram)
Modified:
incubator/ambari/branches/ambari-186/CHANGES.txt
incubator/ambari/branches/ambari-186/hmc/php/util/sequentialScriptRunner.php
Modified: incubator/ambari/branches/ambari-186/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/CHANGES.txt?rev=1347314&r1=1347313&r2=1347314&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/CHANGES.txt (original)
+++ incubator/ambari/branches/ambari-186/CHANGES.txt Thu Jun 7 02:24:04 2012
@@ -6,6 +6,8 @@ characters wide.
Release 0.1.x - unreleased
+ AMBARI-487. Add nodes with external name on AWS causes issues. (Vikram)
+
AMBARI-486. Add Node installs MySQL Server for Hive (Yusaku via Vikram)
AMBARI-485. Make Firebug debugger work again with fileCombinator.php (Yusaku via Vikram)
Modified: incubator/ambari/branches/ambari-186/hmc/php/util/sequentialScriptRunner.php
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/php/util/sequentialScriptRunner.php?rev=1347314&r1=1347313&r2=1347314&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/php/util/sequentialScriptRunner.php (original)
+++ incubator/ambari/branches/ambari-186/hmc/php/util/sequentialScriptRunner.php Thu Jun 7 02:24:04 2012
@@ -231,6 +231,7 @@ foreach ($stagesInfo as $stage => $stage
$currentStatus = $allSubTransactionsInfoResult["subTxns"][$mySubTxnId]["opStatus"];
//$logger->log_debug(" sequentialScriptExecutors sub txns " . json_encode($allSubTransactionsInfoResult));
+ $logger->log_debug("Host count is $hostCount");
if ($currentStatus != $successStatus && $currentStatus != $errorStatus
&& $currentStatus != $totalFailedStatus) {
updateProgressForStage($clusterName, $rootTxnId,
@@ -265,6 +266,13 @@ foreach ($stagesInfo as $stage => $stage
$nextStageHosts[] = $host;
}
}
+
+ // need to provide this list of hosts to the next phase through the hosts.txt
+ $fp = fopen($readFromFile, "w");
+ foreach ($nextStageHosts as $nextStageHost) {
+ fwrite($fp, $nextStageHost."\n");
+ }
+ fclose($fp);
// Change the host list to weed-out bad nodes.
$hosts = $nextStageHosts;
////////// End of constructructing the host list needed for next stage ////////////