|
@@ -33,6 +33,7 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl
|
|
commands: [
|
|
commands: [
|
|
'stopAllServices',
|
|
'stopAllServices',
|
|
'restoreHBaseConfigs',
|
|
'restoreHBaseConfigs',
|
|
|
|
+ 'restoreAccumuloConfigs',
|
|
'stopFailoverControllers',
|
|
'stopFailoverControllers',
|
|
'deleteFailoverControllers',
|
|
'deleteFailoverControllers',
|
|
'stopStandbyNameNode',
|
|
'stopStandbyNameNode',
|
|
@@ -68,6 +69,7 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl
|
|
'deleteSNameNode',
|
|
'deleteSNameNode',
|
|
'startAllServices',
|
|
'startAllServices',
|
|
'reconfigureHBase',
|
|
'reconfigureHBase',
|
|
|
|
+ 'reconfigureAccumulo',
|
|
'startZKFC',
|
|
'startZKFC',
|
|
'installZKFC',
|
|
'installZKFC',
|
|
'startSecondNameNode',
|
|
'startSecondNameNode',
|
|
@@ -95,6 +97,10 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl
|
|
if (!App.Service.find().someProperty('serviceName', 'HBASE') && hbaseTask) {
|
|
if (!App.Service.find().someProperty('serviceName', 'HBASE') && hbaseTask) {
|
|
this.get('tasks').splice(hbaseTask.get('id'), 1);
|
|
this.get('tasks').splice(hbaseTask.get('id'), 1);
|
|
}
|
|
}
|
|
|
|
+ var accumuloTask = this.get('tasks').findProperty('command', 'restoreAccumuloConfigs');
|
|
|
|
+ if (!App.Service.find().someProperty('serviceName', 'ACCUMULO') && accumuloTask) {
|
|
|
|
+ this.get('tasks').splice(accumuloTask.get('id'), 1);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
clearStep: function () {
|
|
clearStep: function () {
|
|
@@ -234,6 +240,20 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl
|
|
error: 'onTaskError'
|
|
error: 'onTaskError'
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ restoreAccumuloConfigs: function(){
|
|
|
|
+ console.warn('func: restoreAccumuloConfigs');
|
|
|
|
+ this.loadConfigTag("accumuloSiteTag");
|
|
|
|
+ var accumuloSiteTag = this.get("content.accumuloSiteTag");
|
|
|
|
+ App.ajax.send({
|
|
|
|
+ name: 'admin.high_availability.load_accumulo_configs',
|
|
|
|
+ sender: this,
|
|
|
|
+ data: {
|
|
|
|
+ accumuloSiteTag: accumuloSiteTag
|
|
|
|
+ },
|
|
|
|
+ success: 'onLoadAccumuloConfigs',
|
|
|
|
+ error: 'onTaskError'
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
|
|
stopFailoverControllers: function(){
|
|
stopFailoverControllers: function(){
|
|
console.warn('func: stopFailoverControllers');
|
|
console.warn('func: stopFailoverControllers');
|
|
@@ -309,6 +329,20 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl
|
|
error: 'onTaskError'
|
|
error: 'onTaskError'
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ onLoadAccumuloConfigs: function (data) {
|
|
|
|
+ console.warn('func: onLoadAccumuloConfigs');
|
|
|
|
+ var accumuloSiteProperties = data.items.findProperty('type', 'accumulo-site').properties;
|
|
|
|
+ App.ajax.send({
|
|
|
|
+ name: 'admin.high_availability.save_configs',
|
|
|
|
+ sender: this,
|
|
|
|
+ data: {
|
|
|
|
+ siteName: 'accumulo-site',
|
|
|
|
+ properties: accumuloSiteProperties
|
|
|
|
+ },
|
|
|
|
+ success: 'onTaskCompleted',
|
|
|
|
+ error: 'onTaskError'
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
|
|
onDeletedHDFSClient: function () {
|
|
onDeletedHDFSClient: function () {
|
|
console.warn('func: onDeletedHDFSClient');
|
|
console.warn('func: onDeletedHDFSClient');
|