|
@@ -95,6 +95,12 @@ App.MainAdminSecurityProgressController = Em.Controller.extend({
|
|
|
currentStage = startedStages.findProperty('isCompleted', false);
|
|
|
}
|
|
|
if (currentStage && currentStage.get('isPolling') === true) {
|
|
|
+ if (currentStage.get('name') === 'START_SERVICES' && !App.router.get('addSecurityController.securityEnabled')) {
|
|
|
+ var timeLineServer = App.Service.find('YARN').get('hostComponents').findProperty('componentName', 'APP_TIMELINE_SERVER');
|
|
|
+ if (timeLineServer) {
|
|
|
+ this.deleteComponents('APP_TIMELINE_SERVER', timeLineServer.get('host.hostName'));
|
|
|
+ }
|
|
|
+ }
|
|
|
currentStage.set('isStarted', true);
|
|
|
currentStage.start();
|
|
|
} else if (currentStage && currentStage.get('stage') === 'stage3') {
|
|
@@ -162,6 +168,27 @@ App.MainAdminSecurityProgressController = Em.Controller.extend({
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ deleteComponents: function(componentName, hostName) {
|
|
|
+ App.ajax.send({
|
|
|
+ name: 'admin.delete_component',
|
|
|
+ sender: this,
|
|
|
+ data: {
|
|
|
+ componentName: componentName,
|
|
|
+ hostName: hostName
|
|
|
+ },
|
|
|
+ success: 'onDeleteComplete',
|
|
|
+ error: 'onDeleteError'
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ onDeleteComplete: function () {
|
|
|
+ console.warn('APP_TIMELINE_SERVER doesn\'t support security mode. It has been removed from YARN service ');
|
|
|
+ },
|
|
|
+
|
|
|
+ onDeleteError: function () {
|
|
|
+ console.warn('Error: Can\'t delete APP_TIMELINE_SERVER');
|
|
|
+ },
|
|
|
+
|
|
|
loadClusterConfigsSuccessCallback: function (data) {
|
|
|
var self = this;
|
|
|
//prepare tags to fetch all configuration for a service
|