Author: yusaku
Date: Wed Feb 20 21:49:01 2013
New Revision: 1448431
URL: http://svn.apache.org/r1448431
Log:
AMBARI-1456. Cannot proceed after bootstrapping in some cases due to a run-time
error while running host checks. (yusaku)
Modified:
incubator/ambari/trunk/CHANGES.txt
incubator/ambari/trunk/ambari-web/app/controllers/wizard/step3_controller.js
Modified: incubator/ambari/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1448431&r1=1448430&r2=1448431&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Wed Feb 20 21:49:01 2013
@@ -298,6 +298,9 @@ Trunk (unreleased changes):
BUG FIXES
+ AMBARI-1456. Cannot proceed after bootstrapping in some cases due to a
+ run-time error while running host checks. (yusaku)
+
AMBARI-1449. Failure popup shown for reconfiguring HDFS when MapReduce
is not selected. (jaimin)
Modified:
incubator/ambari/trunk/ambari-web/app/controllers/wizard/step3_controller.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/wizard/step3_controller.js?rev=1448431&r1=1448430&r2=1448431&view=diff
==============================================================================
---
incubator/ambari/trunk/ambari-web/app/controllers/wizard/step3_controller.js
(original)
+++
incubator/ambari/trunk/ambari-web/app/controllers/wizard/step3_controller.js
Wed Feb 20 21:49:01 2013
@@ -691,6 +691,12 @@ App.WizardStep3Controller = Em.Controlle
};
//render all directories and files for each host
+ if (!host.Hosts.last_agent_env) {
+ // in some unusual circumstances when last_agent_env is not available
from the host,
+ // skip the host and proceed to process the rest of the hosts.
+ console.log("last_agent_env is missing for " + host.Hosts.host_name +
". Skipping host check.");
+ return;
+ }
host.Hosts.last_agent_env.paths.forEach(function(path){
var parsedPath = {
name: path.name,