http://git-wip-us.apache.org/repos/asf/ambari/blob/2a710b35/ambari-server/src/main/resources/stacks/HDP/3.0/services/HDFS/metainfo.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/3.0/services/HDFS/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/3.0/services/HDFS/metainfo.xml new file mode 100644 index 0000000..30c49c7 --- /dev/null +++ b/ambari-server/src/main/resources/stacks/HDP/3.0/services/HDFS/metainfo.xml @@ -0,0 +1,190 @@ +<?xml version="1.0"?> +<!-- + 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. +--> +<metainfo> + <schemaVersion>2.0</schemaVersion> + <services> + <service> + <name>HDFS</name> + <displayName>HDFS</displayName> + <comment>Apache Hadoop Distributed File System</comment> + <version>2.7.1.3.0</version> + <extends>common-services/HDFS/2.1.0.2.0</extends> + + <components> + <!-- NFS Gateway was added in HDP 2.3. --> + <component> + <name>NFS_GATEWAY</name> + <displayName>NFSGateway</displayName> + <cardinality>0+</cardinality> + <versionAdvertised>true</versionAdvertised> + <category>SLAVE</category> + <commandScript> + <script>scripts/nfsgateway.py</script> + <scriptType>PYTHON</scriptType> + <timeout>1200</timeout> + </commandScript> + <dependencies> + <dependency> + <name>HDFS/HDFS_CLIENT</name> + <scope>host</scope> + <auto-deploy> + <enabled>true</enabled> + </auto-deploy> + </dependency> + </dependencies> + </component> + + <component> + <name>ZKFC</name> + <versionAdvertised>true</versionAdvertised> + </component> + </components> + + <osSpecifics> + <osSpecific> + <osFamily>any</osFamily> + <packages> + <package> + <name>rpcbind</name> + <condition>should_install_rpcbind</condition> + </package> + </packages> + </osSpecific> + <osSpecific> + <osFamily>redhat7,amazon2015,redhat6,suse11</osFamily> + <packages> + <package> + <name>hadoop_${stack_version}</name> + </package> + <package> + <name>hadoop_${stack_version}-client</name> + </package> + <package> + <name>snappy</name> + </package> + <package> + <name>snappy-devel</name> + </package> + <package> + <name>lzo</name> + <skipUpgrade>true</skipUpgrade> + <condition>should_install_lzo</condition> + </package> + <package> + <name>hadooplzo_${stack_version}</name> + <condition>should_install_lzo</condition> + </package> + <package> + <name>hadooplzo_${stack_version}-native</name> + <condition>should_install_lzo</condition> + </package> + <package> + <name>hadoop_${stack_version}-libhdfs</name> + </package> + </packages> + </osSpecific> + + <osSpecific> + <osFamily>suse12</osFamily> + <packages> + <package> + <name>hadoop_${stack_version}</name> + </package> + <package> + <name>hadoop_${stack_version}-client</name> + </package> + <package> + <name>snappy</name> + </package> + <package> + <name>snappy-devel</name> + </package> + <package> + <name>liblzo2-2</name> + <skipUpgrade>true</skipUpgrade> + <condition>should_install_lzo</condition> + </package> + <package> + <name>hadooplzo_${stack_version}</name> + <condition>should_install_lzo</condition> + </package> + <package> + <name>hadooplzo_${stack_version}-native</name> + <condition>should_install_lzo</condition> + </package> + <package> + <name>hadoop_${stack_version}-libhdfs</name> + </package> + </packages> + </osSpecific> + + <osSpecific> + <osFamily>debian7,ubuntu12,ubuntu14,ubuntu16</osFamily> + <packages> + <package> + <name>hadoop-${stack_version}-client</name> + </package> + <package> + <name>hadoop-${stack_version}-hdfs-datanode</name> + </package> + <package> + <name>hadoop-${stack_version}-hdfs-journalnode</name> + </package> + <package> + <name>hadoop-${stack_version}-hdfs-namenode</name> + </package> + <package> + <name>hadoop-${stack_version}-hdfs-secondarynamenode</name> + </package> + <package> + <name>hadoop-${stack_version}-hdfs-zkfc</name> + </package> + <package> + <name>libsnappy1</name> + </package> + <package> + <name>libsnappy-dev</name> + </package> + <package> + <name>hadooplzo-${stack_version}</name> + <condition>should_install_lzo</condition> + </package> + <package> + <name>libhdfs0-${stack_version}</name> + </package> + </packages> + </osSpecific> + </osSpecifics> + + <quickLinksConfigurations> + <quickLinksConfiguration> + <fileName>quicklinks.json</fileName> + <default>true</default> + </quickLinksConfiguration> + </quickLinksConfigurations> + + <themes> + <theme> + <fileName>theme.json</fileName> + <default>true</default> + </theme> + </themes> + + </service> + </services> +</metainfo>
http://git-wip-us.apache.org/repos/asf/ambari/blob/2a710b35/ambari-server/src/main/resources/stacks/HDP/3.0/services/HDFS/quicklinks/quicklinks.json ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/3.0/services/HDFS/quicklinks/quicklinks.json b/ambari-server/src/main/resources/stacks/HDP/3.0/services/HDFS/quicklinks/quicklinks.json new file mode 100644 index 0000000..5318ba0 --- /dev/null +++ b/ambari-server/src/main/resources/stacks/HDP/3.0/services/HDFS/quicklinks/quicklinks.json @@ -0,0 +1,80 @@ +{ + "name": "default", + "description": "default quick links configuration", + "configuration": { + "protocol": + { + "type":"https", + "checks":[ + { + "property":"dfs.http.policy", + "desired":"HTTPS_ONLY", + "site":"hdfs-site" + } + ] + }, + + "links": [ + { + "name": "namenode_ui", + "label": "NameNode UI", + "component_name": "NAMENODE", + "url":"%@://%@:%@", + "requires_user_name": "false", + "port":{ + "http_property": "dfs.namenode.http-address", + "http_default_port": "50070", + "https_property": "dfs.namenode.https-address", + "https_default_port": "50470", + "regex": "\\w*:(\\d+)", + "site": "hdfs-site" + } + }, + { + "name": "namenode_logs", + "label": "NameNode Logs", + "component_name": "NAMENODE", + "url":"%@://%@:%@/logs", + "requires_user_name": "false", + "port":{ + "http_property": "dfs.namenode.http-address", + "http_default_port": "50070", + "https_property": "dfs.namenode.https-address", + "https_default_port": "50470", + "regex": "\\w*:(\\d+)", + "site": "hdfs-site" + } + }, + { + "name": "namenode_jmx", + "label": "NameNode JMX", + "component_name": "NAMENODE", + "url":"%@://%@:%@/jmx", + "requires_user_name": "false", + "port":{ + "http_property": "dfs.namenode.http-address", + "http_default_port": "50070", + "https_property": "dfs.namenode.https-address", + "https_default_port": "50470", + "regex": "\\w*:(\\d+)", + "site": "hdfs-site" + } + }, + { + "name": "Thread Stacks", + "label": "Thread Stacks", + "component_name": "NAMENODE", + "url":"%@://%@:%@/stacks", + "requires_user_name": "false", + "port":{ + "http_property": "dfs.namenode.http-address", + "http_default_port": "50070", + "https_property": "dfs.namenode.https-address", + "https_default_port": "50470", + "regex": "\\w*:(\\d+)", + "site": "hdfs-site" + } + } + ] + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/2a710b35/ambari-server/src/main/resources/stacks/HDP/3.0/services/HDFS/themes/theme.json ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/3.0/services/HDFS/themes/theme.json b/ambari-server/src/main/resources/stacks/HDP/3.0/services/HDFS/themes/theme.json new file mode 100644 index 0000000..6f2b797 --- /dev/null +++ b/ambari-server/src/main/resources/stacks/HDP/3.0/services/HDFS/themes/theme.json @@ -0,0 +1,179 @@ +{ + "name": "default", + "description": "Default theme for HDFS service", + "configuration": { + "layouts": [ + { + "name": "default", + "tabs": [ + { + "name": "settings", + "display-name": "Settings", + "layout": { + "tab-columns": "2", + "tab-rows": "1", + "sections": [ + { + "name": "section-namenode", + "display-name": "NameNode", + "row-index": "0", + "column-index": "0", + "row-span": "1", + "column-span": "1", + "section-columns": "1", + "section-rows": "1", + "subsections": [ + { + "name": "subsection-namenode-col1", + "row-index": "0", + "column-index": "0", + "row-span": "1", + "column-span": "1" + } + ] + }, + { + "name": "section-datanode", + "display-name": "DataNode", + "row-index": "0", + "column-index": "1", + "row-span": "1", + "column-span": "1", + "section-columns": "1", + "section-rows": "1", + "subsections": [ + { + "name": "subsection-datanode-col1", + "row-index": "0", + "column-index": "0", + "row-span": "1", + "column-span": "1" + } + ] + } + ] + } + } + ] + } + ], + "placement": { + "configuration-layout": "default", + "configs": [ + { + "config": "hdfs-site/dfs.namenode.name.dir", + "subsection-name": "subsection-namenode-col1" + }, + { + "config": "hadoop-env/namenode_heapsize", + "subsection-name": "subsection-namenode-col1" + }, + { + "config": "hdfs-site/dfs.namenode.handler.count", + "subsection-name": "subsection-namenode-col1" + }, + { + "config": "hdfs-site/dfs.namenode.safemode.threshold-pct", + "subsection-name": "subsection-namenode-col1" + }, + { + "config": "hdfs-site/dfs.datanode.data.dir", + "subsection-name": "subsection-datanode-col1" + }, + { + "config": "hdfs-site/dfs.datanode.failed.volumes.tolerated", + "subsection-name": "subsection-datanode-col1" + }, + { + "config": "hadoop-env/dtnode_heapsize", + "subsection-name": "subsection-datanode-col1" + }, + { + "config": "hdfs-site/dfs.datanode.max.transfer.threads", + "subsection-name": "subsection-datanode-col1" + } + ] + }, + "widgets": [ + { + "config": "hdfs-site/dfs.namenode.name.dir", + "widget": { + "type": "directories" + } + }, + { + "config": "hdfs-site/dfs.namenode.safemode.threshold-pct", + "widget": { + "type": "slider", + "units": [ + { + "unit-name": "percent" + } + ] + } + }, + { + "config": "hdfs-site/dfs.namenode.handler.count", + "widget": { + "type": "slider", + "units": [ + { + "unit-name": "int" + } + ] + } + }, + { + "config": "hadoop-env/namenode_heapsize", + "widget": { + "type": "slider", + "units": [ + { + "unit-name": "GB" + } + ] + } + }, + { + "config": "hdfs-site/dfs.datanode.failed.volumes.tolerated", + "widget": { + "type": "slider", + "units": [ + { + "unit-name": "int" + } + ] + } + }, + { + "config": "hdfs-site/dfs.datanode.data.dir", + "widget": { + "type": "directories" + } + }, + { + "config": "hadoop-env/dtnode_heapsize", + "widget": { + "type": "slider", + "units": [ + { + "unit-name": "GB" + } + ] + } + }, + { + "config": "hdfs-site/dfs.datanode.max.transfer.threads", + "widget": { + "type": "slider", + "units": [ + { + "unit-name": "int" + } + ] + } + } + ] + } +} +