You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jl...@apache.org on 2015/08/14 07:20:18 UTC
ambari git commit: AMBARI-12769: [PluggableStackDefinition] Add PHD
config and resources (jluniya)
Repository: ambari
Updated Branches:
refs/heads/trunk 43511187b -> de457dcb8
AMBARI-12769: [PluggableStackDefinition] Add PHD config and resources (jluniya)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/de457dcb
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/de457dcb
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/de457dcb
Branch: refs/heads/trunk
Commit: de457dcb8b48eba70976fb172bb5a48a2cb52d74
Parents: 4351118
Author: Jayush Luniya <jl...@hortonworks.com>
Authored: Thu Aug 13 22:19:34 2015 -0700
Committer: Jayush Luniya <jl...@hortonworks.com>
Committed: Thu Aug 13 22:19:34 2015 -0700
----------------------------------------------------------------------
.../pluggable_stack_definition/configs/PHD.json | 199 +++++++++++++++++++
.../resources/PHD/custom-admin-ui.css | 61 ++++++
.../resources/PHD/custom-ui.less | 47 +++++
3 files changed, 307 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/de457dcb/ambari-common/src/main/python/pluggable_stack_definition/configs/PHD.json
----------------------------------------------------------------------
diff --git a/ambari-common/src/main/python/pluggable_stack_definition/configs/PHD.json b/ambari-common/src/main/python/pluggable_stack_definition/configs/PHD.json
new file mode 100644
index 0000000..92da79e
--- /dev/null
+++ b/ambari-common/src/main/python/pluggable_stack_definition/configs/PHD.json
@@ -0,0 +1,199 @@
+{
+ "stackName": "PHD",
+ "baseStackName": "HDP",
+ "performCommonReplacements": true,
+ "textReplacements": [
+ ["hdp-select", "distro-select"],
+ ["conf-select", "phd-conf-select"]
+ ],
+ "preservedText": ["ext-2.2", "HDP-oozie", "hdp.version", "HDP_VERSION"],
+ "uiMapping": [
+ {
+ "stackVersionNumber": "3.0",
+ "sign": "<",
+ "baseStackFolder": "HDP2"
+ }
+ ],
+ "versions": [
+ {
+ "version": "2.0.6",
+ "baseVersion": "2.0.6",
+ "active": "false",
+ "services": [
+ {
+ "name": "HDFS"
+
+ },
+ {
+ "name": "ZOOKEEPER"
+ },
+ {
+ "name": "HBASE"
+ },
+ {
+ "name": "YARN"
+ },
+ {
+ "name": "MAPREDUCE2"
+ },
+ {
+ "name": "HIVE"
+ },
+ {
+ "name": "TEZ"
+ },
+ {
+ "name": "OOZIE"
+ },
+ {
+ "name": "KNOX"
+ },
+ {
+ "name": "PIG"
+ }
+ ]
+ },
+ {
+ "version": "2.1",
+ "baseVersion": "2.1",
+ "active": "false",
+ "services": [
+ {
+ "name": "HDFS"
+ },
+ {
+ "name": "ZOOKEEPER"
+ },
+ {
+ "name": "HBASE"
+ },
+ {
+ "name": "YARN"
+ },
+ {
+ "name": "MAPREDUCE2"
+ },
+ {
+ "name": "HIVE"
+ },
+ {
+ "name": "TEZ"
+ },
+ {
+ "name": "OOZIE"
+ },
+ {
+ "name": "KNOX"
+ },
+ {
+ "name": "PIG"
+ }
+ ]
+ },
+ {
+ "version": "3.0",
+ "baseVersion": "2.2",
+ "active": "true",
+ "services": [
+ {
+ "name": "HDFS"
+ },
+ {
+ "name": "ZOOKEEPER"
+ },
+ {
+ "name": "HBASE",
+ "packages":[
+ {
+ "family": "redhat6,suse11",
+ "packages": [
+ "hbase_3_0_*"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "YARN"
+ },
+ {
+ "name": "MAPREDUCE2"
+ },
+ {
+ "name": "HIVE"
+ },
+ {
+ "name": "TEZ"
+ },
+ {
+ "name": "OOZIE",
+ "packages":[
+ {
+ "family": "redhat6,suse11",
+ "packages": [
+ "oozie_3_0_*"
+ ]
+ },
+ {
+ "family": "any",
+ "packages": [
+ "zip",
+ "extjs"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "KNOX",
+ "packages":[
+ {
+ "family": "redhat6,suse11",
+ "packages": [
+ "knox_3_0_*"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "PIG"
+ }
+ ]
+ },
+ {
+ "version": "3.1",
+ "baseVersion": "2.3",
+ "active": "true",
+ "services": [
+ {
+ "name": "HDFS"
+ },
+ {
+ "name": "ZOOKEEPER"
+ },
+ {
+ "name": "HBASE"
+ },
+ {
+ "name": "YARN"
+ },
+ {
+ "name": "MAPREDUCE2"
+ },
+ {
+ "name": "HIVE"
+ },
+ {
+ "name": "TEZ"
+ },
+ {
+ "name": "OOZIE"
+ },
+ {
+ "name": "KNOX"
+ },
+ {
+ "name": "PIG"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/de457dcb/ambari-common/src/main/python/pluggable_stack_definition/resources/PHD/custom-admin-ui.css
----------------------------------------------------------------------
diff --git a/ambari-common/src/main/python/pluggable_stack_definition/resources/PHD/custom-admin-ui.css b/ambari-common/src/main/python/pluggable_stack_definition/resources/PHD/custom-admin-ui.css
new file mode 100644
index 0000000..8d73b00
--- /dev/null
+++ b/ambari-common/src/main/python/pluggable_stack_definition/resources/PHD/custom-admin-ui.css
@@ -0,0 +1,61 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#top-nav .navbar.navbar-static-top .navbar-inner {
+ background-image: -moz-linear-gradient(top, #01786E, #01786E);
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#01786E), to(#01786E));
+ background-image: -webkit-linear-gradient(top, #01786E, #01786E);
+ background-image: -o-linear-gradient(top, #01786E, #01786E);
+ background-image: linear-gradient(to bottom, #01786E, #01786E);
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#01786E, endColorstr=#01786E);
+ -webkit-box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.1);
+ -moz-box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.1);
+ box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.1);
+ max-height: 40px;
+ height: 40px;
+}
+
+.btn-primary {
+ color: #ffffff;
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
+ background-color: #006dcc;
+ *background-color: #01786E;
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#01786E), to(#01786E));
+ background-image: -webkit-linear-gradient(top, #01786E, #01786E);
+ background-image: -o-linear-gradient(top, #01786E, #01786E);
+ background-image: linear-gradient(to bottom, #01786E, #01786E);
+ background-image: -moz-linear-gradient(top, #01786E, #01786E);
+ background-repeat: repeat-x;
+ border-color: #01786E #01786E #01786E;
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
+ filter: progid:dximagetransform.microsoft.gradient(startColorstr='#01786E', endColorstr='#01786E', GradientType=0);
+ filter: progid:dximagetransform.microsoft.gradient(enabled=false);
+}
+
+.btn-primary:hover,
+.btn-primary:active,
+.btn-primary.active,
+.btn-primary.disabled,
+.btn-primary[disabled],
+.btn-primary.disabled:hover,
+.btn-primary[disabled]:hover
+{
+ color: #ffffff;
+ background-color: #01786E;
+ *background-color: #01786E;
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/de457dcb/ambari-common/src/main/python/pluggable_stack_definition/resources/PHD/custom-ui.less
----------------------------------------------------------------------
diff --git a/ambari-common/src/main/python/pluggable_stack_definition/resources/PHD/custom-ui.less b/ambari-common/src/main/python/pluggable_stack_definition/resources/PHD/custom-ui.less
new file mode 100644
index 0000000..0969fe2
--- /dev/null
+++ b/ambari-common/src/main/python/pluggable_stack_definition/resources/PHD/custom-ui.less
@@ -0,0 +1,47 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@import 'common.less';
+
+@top-pivotal-nav-bg-color-from: #01786E;
+@top-pivotal-nav-bg-color-to: #01786E;
+@health-status-green: #01786E;
+
+(~".@{health-status-green-icon}") {
+ color: @health-status-green;
+}
+
+
+#top-nav, .ru-badge {
+
+ .navbar.navbar-static-top {
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+ .navbar-inner {
+ background-image: -moz-linear-gradient(top, @top-pivotal-nav-bg-color-from, @top-pivotal-nav-bg-color-to);
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@top-pivotal-nav-bg-color-from), to(@top-pivotal-nav-bg-color-to));
+ background-image: -webkit-linear-gradient(top, @top-pivotal-nav-bg-color-from, @top-pivotal-nav-bg-color-to);
+ background-image: -o-linear-gradient(top, @top-pivotal-nav-bg-color-from, @top-pivotal-nav-bg-color-to);
+ background-image: linear-gradient(to bottom, @top-pivotal-nav-bg-color-from, @top-pivotal-nav-bg-color-to);
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr= @top-pivotal-nav-bg-color-from, endColorstr=@top-pivotal-nav-bg-color-to);
+ -webkit-box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.1);
+ -moz-box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.1);
+ box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.1);
+ max-height: 40px;
+ }
+ }
+}