Browse Source

AMBARI-1456. Cannot proceed after bootstrapping in some cases due to a run-time error while running host checks. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1448431 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 năm trước cách đây
mục cha
commit
c14eaaf8b6
2 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 3 0
      CHANGES.txt
  2. 6 0
      ambari-web/app/controllers/wizard/step3_controller.js

+ 3 - 0
CHANGES.txt

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

+ 6 - 0
ambari-web/app/controllers/wizard/step3_controller.js

@@ -691,6 +691,12 @@ App.WizardStep3Controller = Em.Controller.extend({
       };
 
       //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,