Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 917E2200BEF for ; Tue, 29 Nov 2016 18:56:15 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 90EB4160B23; Tue, 29 Nov 2016 17:56:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3B0F2160B31 for ; Tue, 29 Nov 2016 18:56:13 +0100 (CET) Received: (qmail 47400 invoked by uid 500); 29 Nov 2016 17:56:11 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 44989 invoked by uid 99); 29 Nov 2016 17:56:09 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2016 17:56:09 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 624CEF15AF; Tue, 29 Nov 2016 17:56:09 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ncole@apache.org To: commits@ambari.apache.org Date: Tue, 29 Nov 2016 17:56:45 -0000 Message-Id: <9d5ad50522b94e0cad5e08c8b4a4b313@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [38/55] [abbrv] ambari git commit: AMBARI-18998. Create smart config tab for Hive and Oozie Database settings (alexantonenko) archived-at: Tue, 29 Nov 2016 17:56:15 -0000 AMBARI-18998. Create smart config tab for Hive and Oozie Database settings (alexantonenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/cf82cf24 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/cf82cf24 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/cf82cf24 Branch: refs/heads/branch-feature-AMBARI-18634 Commit: cf82cf248a2e5178ea3fa35a76df338e7d258eb9 Parents: cad0130 Author: Alex Antonenko Authored: Mon Nov 28 19:48:47 2016 +0200 Committer: Alex Antonenko Committed: Mon Nov 28 19:48:58 2016 +0200 ---------------------------------------------------------------------- .../HIVE/0.12.0.2.0/configuration/hive-env.xml | 19 +++ .../OOZIE/4.0.0.2.0/configuration/oozie-env.xml | 19 +++ .../HDP/2.2/services/HIVE/themes/theme.json | 107 ++++++++++++++++- .../services/HIVE/configuration/hive-env.xml | 35 ++++++ .../services/OOZIE/configuration/oozie-env.xml | 33 ++++++ .../stacks/HDP/2.3/services/OOZIE/metainfo.xml | 6 + .../HDP/2.3/services/OOZIE/themes/theme.json | 116 +++++++++++++++++++ .../stacks/HDP/2.5/services/OOZIE/metainfo.xml | 6 + .../HDP/2.5/services/OOZIE/themes/theme.json | 116 +++++++++++++++++++ ambari-web/app/app.js | 4 - .../data/configs/services/hive_properties.js | 4 - .../data/configs/services/oozie_properties.js | 4 - 12 files changed, 456 insertions(+), 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/cf82cf24/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/configuration/hive-env.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/configuration/hive-env.xml b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/configuration/hive-env.xml index de088dc..a3ad66a 100644 --- a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/configuration/hive-env.xml +++ b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/configuration/hive-env.xml @@ -74,6 +74,25 @@ false + value-list + + + New MySQL Database + + + + Existing MySQL / MariaDB Database + + + + Existing PostgreSQL Database + + + + Existing Oracle Database + + + http://git-wip-us.apache.org/repos/asf/ambari/blob/cf82cf24/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/configuration/oozie-env.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/configuration/oozie-env.xml b/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/configuration/oozie-env.xml index 804c662..c966fb7 100644 --- a/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/configuration/oozie-env.xml +++ b/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/configuration/oozie-env.xml @@ -45,6 +45,25 @@ Oozie Server Database. false + value-list + + + New Derby Database + + + + Existing MySQL / MariaDB Database + + + + Existing PostgreSQL Database + + + + Existing Oracle Database + + + http://git-wip-us.apache.org/repos/asf/ambari/blob/cf82cf24/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/themes/theme.json ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/themes/theme.json b/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/themes/theme.json index 42bc889..f496826 100644 --- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/themes/theme.json +++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/themes/theme.json @@ -132,6 +132,42 @@ } ] } + }, + { + "name": "hive-database", + "display-name": "Database", + "layout": { + "tab-rows": 1, + "tab-columns": 1, + "sections": [ + { + "name": "hive-database-configurations", + "display-name": "Database Configurations", + "row-index": "0", + "column-index": "0", + "row-span": "0", + "column-span": "0", + "section-columns": "2", + "section-rows": "1", + "subsections": [ + { + "name": "hive-database-configurations-col-1", + "row-index": "0", + "column-index": "0", + "row-span": "1", + "column-span": "1" + }, + { + "name": "hive-database-configurations-col-2", + "row-index": "0", + "column-index": "1", + "row-span": "1", + "column-span": "1" + } + ] + } + ] + } } ] } @@ -234,6 +270,34 @@ { "config": "hive-site/hive.server2.use.SSL", "subsection-name": "security-row1-col1" + }, + { + "config": "hive-env/hive_database", + "subsection-name": "hive-database-configurations-col-1" + }, + { + "config": "hive-site/ambari.hive.db.schema.name", + "subsection-name": "hive-database-configurations-col-1" + }, + { + "config": "hive-site/javax.jdo.option.ConnectionUserName", + "subsection-name": "hive-database-configurations-col-1" + }, + { + "config": "hive-site/javax.jdo.option.ConnectionURL", + "subsection-name": "hive-database-configurations-col-1" + }, + { + "config": "hive-env/hive_database_type", + "subsection-name": "hive-database-configurations-col-2" + }, + { + "config": "hive-site/javax.jdo.option.ConnectionDriverName", + "subsection-name": "hive-database-configurations-col-2" + }, + { + "config": "hive-site/javax.jdo.option.ConnectionPassword", + "subsection-name": "hive-database-configurations-col-2" } ] }, @@ -431,8 +495,49 @@ "widget": { "type": "list" } + }, + { + "config": "hive-env/hive_database", + "widget": { + "type": "combo" + } + }, + { + "config": "hive-site/javax.jdo.option.ConnectionUserName", + "widget": { + "type": "text-field" + } + }, + { + "config": "hive-site/javax.jdo.option.ConnectionPassword", + "widget": { + "type": "password" + } + }, + { + "config": "hive-site/javax.jdo.option.ConnectionDriverName", + "widget": { + "type": "text-field" + } + }, + { + "config": "hive-site/javax.jdo.option.ConnectionURL", + "widget": { + "type": "text-field" + } + }, + { + "config": "hive-site/ambari.hive.db.schema.name", + "widget": { + "type": "text-field" + } + }, + { + "config": "hive-env/hive_database_type", + "widget": { + "type": "text-field" + } } ] } } - http://git-wip-us.apache.org/repos/asf/ambari/blob/cf82cf24/ambari-server/src/main/resources/stacks/HDP/2.3/services/HIVE/configuration/hive-env.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/HIVE/configuration/hive-env.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/HIVE/configuration/hive-env.xml index f62ac13..01fd6ab 100644 --- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/HIVE/configuration/hive-env.xml +++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/HIVE/configuration/hive-env.xml @@ -80,4 +80,39 @@ export JAVA_LIBRARY_PATH="$JAVA_LIBRARY_PATH:{{jdbc_libs_dir}}" + + hive_database + New MySQL Database + Hive Database + + Property that determines whether the HIVE DB is managed by Ambari. + + + false + value-list + + + New MySQL Database + + + + Existing MySQL / MariaDB Database + + + + Existing PostgreSQL Database + + + + Existing Oracle Database + + + + Existing SQL Anywhere Database + + + + + + http://git-wip-us.apache.org/repos/asf/ambari/blob/cf82cf24/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/configuration/oozie-env.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/configuration/oozie-env.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/configuration/oozie-env.xml index 6c292aa..459eab4 100644 --- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/configuration/oozie-env.xml +++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/configuration/oozie-env.xml @@ -107,4 +107,37 @@ export HADOOP_OPTS="-Dhdp.version=${HDP_VERSION} ${HADOOP_OPTS}" + + oozie_database + New Derby Database + Oozie Database + Oozie Server Database. + + false + value-list + + + New Derby Database + + + + Existing MySQL / MariaDB Database + + + + Existing PostgreSQL Database + + + + Existing Oracle Database + + + + Existing SQL Anywhere Database + + + + + + http://git-wip-us.apache.org/repos/asf/ambari/blob/cf82cf24/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/metainfo.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/metainfo.xml index dcac2eb..26496f7 100644 --- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/metainfo.xml +++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/metainfo.xml @@ -27,6 +27,12 @@ true + + + theme.json + true + + http://git-wip-us.apache.org/repos/asf/ambari/blob/cf82cf24/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/themes/theme.json ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/themes/theme.json b/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/themes/theme.json new file mode 100644 index 0000000..5f325f7 --- /dev/null +++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/themes/theme.json @@ -0,0 +1,116 @@ +{ + "name": "default", + "description": "Default theme for Oozie service", + "configuration": { + "layouts": [ + { + "name": "default", + "tabs": [ + { + "name": "oozie-database", + "display-name": "Database", + "layout": { + "tab-rows": 1, + "tab-columns": 1, + "sections": [ + { + "name": "oozie-database-configurations", + "display-name": "Database Configurations", + "row-index": "0", + "column-index": "0", + "row-span": "0", + "column-span": "0", + "section-columns": "2", + "section-rows": "1", + "subsections": [ + { + "name": "oozie-database-configurations-col-1", + "row-index": "0", + "column-index": "0", + "row-span": "1", + "column-span": "1" + }, + { + "name": "oozie-database-configurations-col-2", + "row-index": "0", + "column-index": "1", + "row-span": "1", + "column-span": "1" + } + ] + } + ] + } + } + ] + } + ], + "placement": { + "configuration-layout": "default", + "configs": [ + { + "config": "oozie-env/oozie_database", + "subsection-name": "oozie-database-configurations-col-1" + }, + { + "config": "oozie-site/oozie.db.schema.name", + "subsection-name": "oozie-database-configurations-col-1" + }, + { + "config": "oozie-site/oozie.service.JPAService.jdbc.username", + "subsection-name": "oozie-database-configurations-col-1" + }, + { + "config": "oozie-site/oozie.service.JPAService.jdbc.url", + "subsection-name": "oozie-database-configurations-col-1" + }, + { + "config": "oozie-site/oozie.service.JPAService.jdbc.driver", + "subsection-name": "oozie-database-configurations-col-2" + }, + { + "config": "oozie-site/oozie.service.JPAService.jdbc.password", + "subsection-name": "oozie-database-configurations-col-2" + } + ] + }, + "widgets": [ + { + "config": "oozie-env/oozie_database", + "widget": { + "type": "combo" + } + }, + { + "config": "oozie-site/oozie.service.JPAService.jdbc.username", + "widget": { + "type": "text-field" + } + }, + { + "config": "oozie-site/oozie.service.JPAService.jdbc.password", + "widget": { + "type": "password" + } + }, + { + "config": "oozie-site/oozie.service.JPAService.jdbc.driver", + "widget": { + "type": "text-field" + } + }, + { + "config": "oozie-site/oozie.service.JPAService.jdbc.url", + "widget": { + "type": "text-field" + } + }, + { + "config": "oozie-site/oozie.db.schema.name", + "widget": { + "type": "text-field" + } + } + ] + } +} http://git-wip-us.apache.org/repos/asf/ambari/blob/cf82cf24/ambari-server/src/main/resources/stacks/HDP/2.5/services/OOZIE/metainfo.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.5/services/OOZIE/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.5/services/OOZIE/metainfo.xml index f0a7754..027e8b4 100644 --- a/ambari-server/src/main/resources/stacks/HDP/2.5/services/OOZIE/metainfo.xml +++ b/ambari-server/src/main/resources/stacks/HDP/2.5/services/OOZIE/metainfo.xml @@ -21,6 +21,12 @@ OOZIE common-services/OOZIE/4.2.0.2.5 + + + theme.json + true + + http://git-wip-us.apache.org/repos/asf/ambari/blob/cf82cf24/ambari-server/src/main/resources/stacks/HDP/2.5/services/OOZIE/themes/theme.json ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.5/services/OOZIE/themes/theme.json b/ambari-server/src/main/resources/stacks/HDP/2.5/services/OOZIE/themes/theme.json new file mode 100644 index 0000000..5f325f7 --- /dev/null +++ b/ambari-server/src/main/resources/stacks/HDP/2.5/services/OOZIE/themes/theme.json @@ -0,0 +1,116 @@ +{ + "name": "default", + "description": "Default theme for Oozie service", + "configuration": { + "layouts": [ + { + "name": "default", + "tabs": [ + { + "name": "oozie-database", + "display-name": "Database", + "layout": { + "tab-rows": 1, + "tab-columns": 1, + "sections": [ + { + "name": "oozie-database-configurations", + "display-name": "Database Configurations", + "row-index": "0", + "column-index": "0", + "row-span": "0", + "column-span": "0", + "section-columns": "2", + "section-rows": "1", + "subsections": [ + { + "name": "oozie-database-configurations-col-1", + "row-index": "0", + "column-index": "0", + "row-span": "1", + "column-span": "1" + }, + { + "name": "oozie-database-configurations-col-2", + "row-index": "0", + "column-index": "1", + "row-span": "1", + "column-span": "1" + } + ] + } + ] + } + } + ] + } + ], + "placement": { + "configuration-layout": "default", + "configs": [ + { + "config": "oozie-env/oozie_database", + "subsection-name": "oozie-database-configurations-col-1" + }, + { + "config": "oozie-site/oozie.db.schema.name", + "subsection-name": "oozie-database-configurations-col-1" + }, + { + "config": "oozie-site/oozie.service.JPAService.jdbc.username", + "subsection-name": "oozie-database-configurations-col-1" + }, + { + "config": "oozie-site/oozie.service.JPAService.jdbc.url", + "subsection-name": "oozie-database-configurations-col-1" + }, + { + "config": "oozie-site/oozie.service.JPAService.jdbc.driver", + "subsection-name": "oozie-database-configurations-col-2" + }, + { + "config": "oozie-site/oozie.service.JPAService.jdbc.password", + "subsection-name": "oozie-database-configurations-col-2" + } + ] + }, + "widgets": [ + { + "config": "oozie-env/oozie_database", + "widget": { + "type": "combo" + } + }, + { + "config": "oozie-site/oozie.service.JPAService.jdbc.username", + "widget": { + "type": "text-field" + } + }, + { + "config": "oozie-site/oozie.service.JPAService.jdbc.password", + "widget": { + "type": "password" + } + }, + { + "config": "oozie-site/oozie.service.JPAService.jdbc.driver", + "widget": { + "type": "text-field" + } + }, + { + "config": "oozie-site/oozie.service.JPAService.jdbc.url", + "widget": { + "type": "text-field" + } + }, + { + "config": "oozie-site/oozie.db.schema.name", + "widget": { + "type": "text-field" + } + } + ] + } +} http://git-wip-us.apache.org/repos/asf/ambari/blob/cf82cf24/ambari-web/app/app.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/app.js b/ambari-web/app/app.js index 051daff..ee0b6cf 100644 --- a/ambari-web/app/app.js +++ b/ambari-web/app/app.js @@ -216,10 +216,6 @@ module.exports = Em.Application.create({ return (this.get('currentStackVersion') || this.get('defaultStackVersion')).replace(regExp, ''); }.property('currentStackVersion', 'defaultStackVersion', 'currentStackName'), - isHadoop23Stack: function () { - return (stringUtils.compareVersions(this.get('currentStackVersionNumber'), "2.3") > -1); - }.property('currentStackVersionNumber'), - isHadoopWindowsStack: Em.computed.equal('currentStackName', 'HDPWIN'), /** http://git-wip-us.apache.org/repos/asf/ambari/blob/cf82cf24/ambari-web/app/data/configs/services/hive_properties.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/data/configs/services/hive_properties.js b/ambari-web/app/data/configs/services/hive_properties.js index 47ba788..7386abf 100644 --- a/ambari-web/app/data/configs/services/hive_properties.js +++ b/ambari-web/app/data/configs/services/hive_properties.js @@ -74,10 +74,6 @@ module.exports = [ { "displayName": "Existing Oracle Database", "hidden": false - }, - { - "displayName": "Existing SQL Anywhere Database", - "hidden": App.get('currentStackName') !== 'SAPHD' && (App.get('currentStackName') !== 'HDP' || !App.get('isHadoop23Stack')) } ], "radioName": "hive-database", http://git-wip-us.apache.org/repos/asf/ambari/blob/cf82cf24/ambari-web/app/data/configs/services/oozie_properties.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/data/configs/services/oozie_properties.js b/ambari-web/app/data/configs/services/oozie_properties.js index 0f71688..68e18a8 100644 --- a/ambari-web/app/data/configs/services/oozie_properties.js +++ b/ambari-web/app/data/configs/services/oozie_properties.js @@ -74,10 +74,6 @@ module.exports = [ { "displayName": "Existing Oracle Database", "hidden": false - }, - { - "displayName": "Existing SQL Anywhere Database", - "hidden": App.get('currentStackName') !== 'SAPHD' && (App.get('currentStackName') !== 'HDP' || !App.get('isHadoop23Stack')) } ], "radioName": "oozie-database",