Parcourir la source

AMBARI-1940. Create a flag to toggle the support for additional database support in Hive and Oozie. (jaimin)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1468269 13f79535-47bb-0310-9956-ffa450edef68
Jaimin Jetly il y a 12 ans
Parent
commit
7f8a9fc561

+ 3 - 0
CHANGES.txt

@@ -258,6 +258,9 @@ Trunk (unreleased changes):
 
  IMPROVEMENTS
 
+ AMBARI-1940. Create a flag to toggle the support for additional database 
+ support in Hive and Oozie. (jaimin)
+
  AMBARI-1928. Make experimental Ambari Web features toggleable
  via mvn build. (yusaku via jaimin)
  

+ 2 - 1
ambari-web/app/config.js

@@ -46,7 +46,8 @@ App.supports = {
   reassignMaster: false,
   stackUpgrade: false,
   capacitySchedulerUi: false,
-  startStopAllServices: false
+  startStopAllServices: false,
+  hiveOozieExtraDatabases: false
 };
 
 if (App.enableExperimental) {

+ 8 - 4
ambari-web/app/data/config_properties.js

@@ -849,7 +849,8 @@ module.exports =
         },
         {
           displayName: 'Existing Oracle Database',
-          foreignKeys: ['hive_existing_oracle_database', 'hive_existing_oracle_host']
+          foreignKeys: ['hive_existing_oracle_database', 'hive_existing_oracle_host'],
+          hidden: !App.supports.hiveOozieExtraDatabases
         }
       ],
       "description": "MySQL will be installed by Ambari",
@@ -2262,15 +2263,18 @@ module.exports =
         },
         {
           displayName: 'New MySQL Database',
-          foreignKeys: ['oozie_ambari_database', 'oozie_ambari_host']
+          foreignKeys: ['oozie_ambari_database', 'oozie_ambari_host'],
+          hidden: !App.supports.hiveOozieExtraDatabases
         },
         {
           displayName: 'Existing MySQL Database',
-          foreignKeys: ['oozie_existing_mysql_database', 'oozie_existing_mysql_host']
+          foreignKeys: ['oozie_existing_mysql_database', 'oozie_existing_mysql_host'],
+          hidden: !App.supports.hiveOozieExtraDatabases
         },
         {
           displayName: 'Existing Oracle Database',
-          foreignKeys: ['oozie_existing_oracle_database', 'oozie_existing_oracle_host']
+          foreignKeys: ['oozie_existing_oracle_database', 'oozie_existing_oracle_host'],
+          hidden: !App.supports.hiveOozieExtraDatabases
         }
       ],
       "description": "Current Derby Database will be installed by Ambari",

+ 2 - 0
ambari-web/app/views/wizard/controls_view.js

@@ -169,11 +169,13 @@ App.ServiceConfigCheckbox = Ember.Checkbox.extend(App.ServiceConfigPopoverSuppor
 App.ServiceConfigRadioButtons = Ember.View.extend({
   template: Ember.Handlebars.compile([
     '{{#each option in view.options}}',
+    '{{#unless option.hidden}}',
     '<label class="radio">',
     '{{#view App.ServiceConfigRadioButton nameBinding = "view.name" valueBinding = "option.displayName"}}',
     '{{/view}}',
     '{{option.displayName}} &nbsp;',
     '</label>',
+    '{{/unless}}',
     '{{/each}}'
   ].join('\n')),
   serviceConfig: null,