瀏覽代碼

AMBARI-9189. UI for supporting HiveServer 2 HA (alexantonenko)

Alex Antonenko 10 年之前
父節點
當前提交
b3f0afbfcc

+ 1 - 1
ambari-web/app/controllers/main/service/item.js

@@ -52,7 +52,7 @@ App.MainServiceItemController = Em.Controller.extend({
       var hostNames = App.Host.find().mapProperty('hostName');
       this.set('allHosts', hostNames);
 
-      ['HBASE_MASTER', 'HIVE_METASTORE', 'ZOOKEEPER_SERVER', 'FLUME_HANDLER'].forEach(function(componentName) {
+      ['HBASE_MASTER', 'HIVE_METASTORE', 'ZOOKEEPER_SERVER', 'FLUME_HANDLER', 'HIVE_SERVER'].forEach(function(componentName) {
         self.loadHostsWithoutComponent(componentName);
       });
     }

+ 1 - 0
ambari-web/app/messages.js

@@ -2295,6 +2295,7 @@ Em.I18n.translations = {
   'dashboard.services.hive.clients':'Hive Clients',
   'dashboard.services.hive.client':'Hive Client',
   'dashboard.services.hive.metastore':'Hive Metastore',
+  'dashboard.services.hive.server2':'HiveServer2',
 
   'dashboard.services.oozie.clients':'Oozie Clients',
   'dashboard.services.oozie.client':'Oozie Client',

+ 1 - 1
ambari-web/app/models/stack_service_component.js

@@ -190,7 +190,7 @@ App.StackServiceComponent = DS.Model.extend({
 
   /** @property {Boolean} showAddBtnInInstall - show add button for this component on Assign Masters  **/
   showAddBtnInInstall: function() {
-    var doNotShowList = ['HIVE_METASTORE'];
+    var doNotShowList = ['HIVE_METASTORE', 'HIVE_SERVER'];
     return !doNotShowList.contains(this.get('componentName'));
   }.property('componentName')
 

+ 7 - 0
ambari-web/app/views/main/service/item.js

@@ -161,6 +161,13 @@ App.MainServiceItemView = Em.View.extend({
        component: 'HIVE_METASTORE',
        isHidden: !App.get('isHadoop22Stack')
       },
+      {
+       cssClass: 'icon-plus',
+       'label': '{0} {1}'.format(Em.I18n.t('add'), Em.I18n.t('dashboard.services.hive.server2')),
+       service: 'HIVE',
+       component: 'HIVE_SERVER',
+       isHidden: !App.get('isHadoop22Stack')
+      },
       {
         cssClass: 'icon-plus',
         'label': '{0} {1}'.format(Em.I18n.t('add'), Em.I18n.t('dashboard.services.zookeeper.server')),