Author: swagle
Date: Wed May 8 00:39:58 2013
New Revision: 1480137
URL: http://svn.apache.org/r1480137
Log:
AMBARI-2093. Add Tez as a configurable Service in Hadoop 2.0 stack. (swagle)
Added:
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-tez/
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-tez/manifests/
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-tez/manifests/init.pp
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-tez/manifests/tez_client.pp
Modified:
incubator/ambari/trunk/CHANGES.txt
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp/manifests/params.pp
incubator/ambari/trunk/ambari-agent/src/main/python/ambari_agent/AmbariConfig.py
incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/Role.java
incubator/ambari/trunk/ambari-server/src/main/resources/stacks/HDP/2.0.1/services/TEZ/metainfo.xml
Modified: incubator/ambari/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1480137&r1=1480136&r2=1480137&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Wed May 8 00:39:58 2013
@@ -12,6 +12,8 @@ Trunk (unreleased changes):
NEW FEATURES
+ AMBARI-2093. Add Tez as a configurable Service in Hadoop 2.0 stack. (swagle)
+
AMBARI-2031. AMBARI-2031. Add clover code coverage profile.
(Giridharan Kesavan via swagle)
Added:
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-tez/manifests/init.pp
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-tez/manifests/init.pp?rev=1480137&view=auto
==============================================================================
---
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-tez/manifests/init.pp
(added)
+++
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-tez/manifests/init.pp
Wed May 8 00:39:58 2013
@@ -0,0 +1,24 @@
+#
+#
+# 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.
+#
+#
+
+class hdp-tez::initialize()
+{
+}
Added:
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-tez/manifests/tez_client.pp
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-tez/manifests/tez_client.pp?rev=1480137&view=auto
==============================================================================
---
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-tez/manifests/tez_client.pp
(added)
+++
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-tez/manifests/tez_client.pp
Wed May 8 00:39:58 2013
@@ -0,0 +1,40 @@
+#
+#
+# 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.
+#
+#
+class hdp-tez::tez_client(
+ $service_state = $hdp::params::cluster_service_state,
+ $opts = {}
+)
+{
+ if ($service_state == 'no_op') {
+ } elsif ($service_state in 'installed_and_configured') {
+
+ include hdp-tez::initialize
+
+ $package_name = 'tez_client'
+
+ hdp::package{ $package_name :
+ ensure => present,
+ package_type => $package_name
+ }
+ } else {
+ hdp_fail("TODO not implemented yet: service_state = ${service_state}")
+ }
+}
\ No newline at end of file
Modified:
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp/manifests/params.pp
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp/manifests/params.pp?rev=1480137&r1=1480136&r2=1480137&view=diff
==============================================================================
---
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp/manifests/params.pp
(original)
+++
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp/manifests/params.pp
Wed May 8 00:39:58 2013
@@ -444,6 +444,14 @@ class hdp::params()
}
},
+ tez_client => {
+ 'ALL' => {
+ 64 => {
+ 'ALL' => ['tez']
+ }
+ }
+ },
+
lzo => {
'ALL' => {
'ALL' => {
Modified:
incubator/ambari/trunk/ambari-agent/src/main/python/ambari_agent/AmbariConfig.py
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-agent/src/main/python/ambari_agent/AmbariConfig.py?rev=1480137&r1=1480136&r2=1480137&view=diff
==============================================================================
---
incubator/ambari/trunk/ambari-agent/src/main/python/ambari_agent/AmbariConfig.py
(original)
+++
incubator/ambari/trunk/ambari-agent/src/main/python/ambari_agent/AmbariConfig.py
Wed May 8 00:39:58 2013
@@ -124,7 +124,8 @@ rolesToClass = {
'DASHBOARD_SERVICE_CHECK': 'hdp-dashboard::dashboard::service_check',
'DECOMMISSION_DATANODE': 'hdp-hadoop::hdfs::decommission',
'HUE_SERVICE_CHECK': 'hdp-hue::service_check',
- 'RESOURCEMANAGER_SERVICE_CHECK': 'hdp-yarn::resourcemanager::service_check'
+ 'RESOURCEMANAGER_SERVICE_CHECK': 'hdp-yarn::resourcemanager::service_check',
+ 'TEZ_CLIENT': 'hdp-tez::tez_client'
}
serviceStates = {
Modified:
incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/Role.java
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/Role.java?rev=1480137&r1=1480136&r2=1480137&view=diff
==============================================================================
---
incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/Role.java
(original)
+++
incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/Role.java
Wed May 8 00:39:58 2013
@@ -74,5 +74,6 @@ public enum Role {
RESOURCEMANAGER_SERVICE_CHECK,
NODEMANAGER,
YARN_CLIENT,
- HISTORYSERVER
+ HISTORYSERVER,
+ TEZ_CLIENT
}
Modified:
incubator/ambari/trunk/ambari-server/src/main/resources/stacks/HDP/2.0.1/services/TEZ/metainfo.xml
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-server/src/main/resources/stacks/HDP/2.0.1/services/TEZ/metainfo.xml?rev=1480137&r1=1480136&r2=1480137&view=diff
==============================================================================
---
incubator/ambari/trunk/ambari-server/src/main/resources/stacks/HDP/2.0.1/services/TEZ/metainfo.xml
(original)
+++
incubator/ambari/trunk/ambari-server/src/main/resources/stacks/HDP/2.0.1/services/TEZ/metainfo.xml
Wed May 8 00:39:58 2013
@@ -17,12 +17,12 @@
-->
<metainfo>
<user>root</user>
- <comment>This is comment for TEZ service</comment>
+ <comment>Tez is the next generation Hadoop Query Processing framework
written on top of YARN</comment>
<version>0.1.0.22-1</version>
<components>
<component>
- <name>TEZ</name>
+ <name>TEZ_CLIENT</name>
<category>CLIENT</category>
</component>
</components>