瀏覽代碼

AMBARI-6222. Move Wizard (step 2). Invalid hosts-list for moving NameNode after HA enabling. (onechiporenko)

Oleg Nechiporenko 11 年之前
父節點
當前提交
a25cd0e084
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      ambari-web/app/controllers/main/service/reassign/step2_controller.js

+ 4 - 0
ambari-web/app/controllers/main/service/reassign/step2_controller.js

@@ -24,6 +24,10 @@ App.ReassignMasterWizardStep2Controller = App.WizardStep5Controller.extend({
   showCurrentHost: true,
 
   loadStep: function() {
+    // If High Availability is enabled NameNode became a multiple component
+    if (App.get('isHaEnabled')) {
+      this.get('multipleComponents').push('NAMENODE');
+    }
     this._super();
     if(this.get('content.reassign.component_name') == "NAMENODE" && !this.get('content.masterComponentHosts').findProperty('component', "SECONDARY_NAMENODE")){
       this.set('showCurrentHost', false);