Переглянути джерело

AMBARI-6116 HA POST conflicts. (ababiichuk)

aBabiichuk 11 роки тому
батько
коміт
2c184414e4

+ 0 - 9
ambari-web/app/controllers/main/admin/highAvailability/step5_controller.js

@@ -44,15 +44,6 @@ App.HighAvailabilityWizardStep5Controller = App.HighAvailabilityProgressPageCont
   },
 
   installJournalNodes: function () {
-    App.ajax.send({
-      name: 'admin.high_availability.create_journalnode',
-      sender: this,
-      success: 'onJournalNodeCreate',
-      error: 'onJournalNodeCreate'
-    });
-  },
-
-  onJournalNodeCreate: function () {
     var hostNames = this.get('content.masterComponentHosts').filterProperty('component', 'JOURNALNODE').mapProperty('hostName');
     this.createComponent('JOURNALNODE', hostNames);
   },

+ 0 - 9
ambari-web/app/controllers/main/admin/highAvailability/step9_controller.js

@@ -41,15 +41,6 @@ App.HighAvailabilityWizardStep9Controller = App.HighAvailabilityProgressPageCont
   },
 
   installZKFC: function () {
-    App.ajax.send({
-      name: 'admin.high_availability.create_zkfc',
-      sender: this,
-      success: 'onZKFCCreate',
-      error: 'onZKFCCreate'
-    });
-  },
-
-  onZKFCCreate: function () {
     var hostName = this.get('content.masterComponentHosts').filterProperty('component', 'NAMENODE').mapProperty('hostName');
     this.createComponent('ZKFC', hostName);
   },

+ 0 - 36
ambari-web/app/utils/ajax/ajax.js

@@ -1076,42 +1076,6 @@ var urls = {
       }
     }
   },
-  'admin.high_availability.create_journalnode': {
-    'real': '/clusters/{clusterName}/services?ServiceInfo/service_name=HDFS',
-    'mock': '',
-    'type': 'POST',
-    'format': function() {
-      return {
-        data: JSON.stringify({
-          "components": [
-            {
-              "ServiceComponentInfo": {
-                "component_name": "JOURNALNODE"
-              }
-            }
-          ]
-        })
-      }
-    }
-  },
-  'admin.high_availability.create_zkfc': {
-    'real': '/clusters/{clusterName}/services?ServiceInfo/service_name=HDFS',
-    'mock': '',
-    'type': 'POST',
-    'format': function() {
-      return {
-        data: JSON.stringify({
-          "components": [
-            {
-              "ServiceComponentInfo": {
-                "component_name": "ZKFC"
-              }
-            }
-          ]
-        })
-      }
-    }
-  },
   'admin.high_availability.install_component': {
     'real': '/clusters/{clusterName}/hosts/{hostName}/host_components/{componentName}',
     'mock': '',