|
@@ -34,6 +34,7 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl
|
|
|
'stopAllServices',
|
|
|
'restoreHBaseConfigs',
|
|
|
'restoreAccumuloConfigs',
|
|
|
+ 'restoreHawqConfigs',
|
|
|
'stopFailoverControllers',
|
|
|
'deleteFailoverControllers',
|
|
|
'stopStandbyNameNode',
|
|
@@ -67,6 +68,7 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl
|
|
|
'startAllServices',
|
|
|
'reconfigureHBase',
|
|
|
'reconfigureAccumulo',
|
|
|
+ 'reconfigureHawq',
|
|
|
'startZKFC',
|
|
|
'installZKFC',
|
|
|
'startSecondNameNode',
|
|
@@ -98,6 +100,10 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl
|
|
|
if (!App.Service.find().someProperty('serviceName', 'ACCUMULO') && accumuloTask) {
|
|
|
this.get('tasks').splice(accumuloTask.get('id'), 1);
|
|
|
}
|
|
|
+ var hawqTask = this.get('tasks').findProperty('command', 'restoreHawqConfigs');
|
|
|
+ if (!App.Service.find().someProperty('serviceName', 'HAWQ') && hawqTask) {
|
|
|
+ this.get('tasks').splice(hawqTask.get('id'), 1);
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
clearStep: function () {
|
|
@@ -237,6 +243,19 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl
|
|
|
error: 'onTaskError'
|
|
|
});
|
|
|
},
|
|
|
+ restoreHawqConfigs: function(){
|
|
|
+ this.loadConfigTag("hawqSiteTag");
|
|
|
+ var hawqSiteTag = this.get("content.hawqSiteTag");
|
|
|
+ App.ajax.send({
|
|
|
+ name: 'admin.high_availability.load_hawq_configs',
|
|
|
+ sender: this,
|
|
|
+ data: {
|
|
|
+ hawqSiteTag: hawqSiteTag
|
|
|
+ },
|
|
|
+ success: 'onLoadHawqConfigs',
|
|
|
+ error: 'onTaskError'
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
stopFailoverControllers: function(){
|
|
|
var hostNames = this.get('content.masterComponentHosts').filterProperty('component', 'NAMENODE').mapProperty('hostName');
|
|
@@ -315,6 +334,19 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ onLoadHawqConfigs: function (data) {
|
|
|
+ var hawqSiteProperties = data.items.findProperty('type', 'hawq-site').properties;
|
|
|
+ App.ajax.send({
|
|
|
+ name: 'admin.high_availability.save_configs',
|
|
|
+ sender: this,
|
|
|
+ data: {
|
|
|
+ siteName: 'hawq-site',
|
|
|
+ properties: hawqSiteProperties
|
|
|
+ },
|
|
|
+ success: 'onTaskCompleted',
|
|
|
+ error: 'onTaskError'
|
|
|
+ });
|
|
|
+ },
|
|
|
onDeletedHDFSClient: function () {
|
|
|
var deletedHdfsClients = this.get('deletedHdfsClients');
|
|
|
var hostName = this.get("content.hdfsClientHostNames");
|