|
@@ -40,7 +40,8 @@ App.MainServiceItemView = Em.View.extend({
|
|
mastersExcludedCommands: {
|
|
mastersExcludedCommands: {
|
|
'NAMENODE': ['DECOMMISSION', 'REBALANCEHDFS'],
|
|
'NAMENODE': ['DECOMMISSION', 'REBALANCEHDFS'],
|
|
'RESOURCEMANAGER': ['DECOMMISSION', 'REFRESHQUEUES'],
|
|
'RESOURCEMANAGER': ['DECOMMISSION', 'REFRESHQUEUES'],
|
|
- 'HBASE_MASTER': ['DECOMMISSION']
|
|
|
|
|
|
+ 'HBASE_MASTER': ['DECOMMISSION'],
|
|
|
|
+ 'KNOX_GATEWAY': ['STARTDEMOLDAP','STOPDEMOLDAP']
|
|
},
|
|
},
|
|
|
|
|
|
actionMap: function() {
|
|
actionMap: function() {
|
|
@@ -65,6 +66,7 @@ App.MainServiceItemView = Em.View.extend({
|
|
},
|
|
},
|
|
REFRESH_YARN_QUEUE: {
|
|
REFRESH_YARN_QUEUE: {
|
|
action: 'refreshYarnQueues',
|
|
action: 'refreshYarnQueues',
|
|
|
|
+ customCommand: 'REFRESHQUEUES',
|
|
label: Em.I18n.t('services.service.actions.run.yarnRefreshQueues.menu'),
|
|
label: Em.I18n.t('services.service.actions.run.yarnRefreshQueues.menu'),
|
|
cssClass: 'icon-refresh',
|
|
cssClass: 'icon-refresh',
|
|
disabled: false
|
|
disabled: false
|
|
@@ -104,18 +106,21 @@ App.MainServiceItemView = Em.View.extend({
|
|
},
|
|
},
|
|
STARTDEMOLDAP: {
|
|
STARTDEMOLDAP: {
|
|
action: 'startLdapKnox',
|
|
action: 'startLdapKnox',
|
|
|
|
+ customCommand: 'STARTDEMOLDAP',
|
|
label: Em.I18n.t('services.service.actions.run.startLdapKnox.context'),
|
|
label: Em.I18n.t('services.service.actions.run.startLdapKnox.context'),
|
|
cssClass: 'icon-play-sign',
|
|
cssClass: 'icon-play-sign',
|
|
disabled: false
|
|
disabled: false
|
|
},
|
|
},
|
|
STOPDEMOLDAP: {
|
|
STOPDEMOLDAP: {
|
|
action: 'stopLdapKnox',
|
|
action: 'stopLdapKnox',
|
|
|
|
+ customCommand: 'STOPDEMOLDAP',
|
|
label: Em.I18n.t('services.service.actions.run.stopLdapKnox.context'),
|
|
label: Em.I18n.t('services.service.actions.run.stopLdapKnox.context'),
|
|
cssClass: 'icon-stop',
|
|
cssClass: 'icon-stop',
|
|
disabled: false
|
|
disabled: false
|
|
},
|
|
},
|
|
REBALANCE_HDFS: {
|
|
REBALANCE_HDFS: {
|
|
action: 'rebalanceHdfsNodes',
|
|
action: 'rebalanceHdfsNodes',
|
|
|
|
+ customCommand: 'REBALANCEHDFS',
|
|
context: Em.I18n.t('services.service.actions.run.rebalanceHdfsNodes.context'),
|
|
context: Em.I18n.t('services.service.actions.run.rebalanceHdfsNodes.context'),
|
|
label: Em.I18n.t('services.service.actions.run.rebalanceHdfsNodes'),
|
|
label: Em.I18n.t('services.service.actions.run.rebalanceHdfsNodes'),
|
|
cssClass: 'icon-refresh',
|
|
cssClass: 'icon-refresh',
|