Author: swagle
Date: Tue Apr 30 00:45:38 2013
New Revision: 1477432
URL: http://svn.apache.org/r1477432
Log:
AMBARI-2049. Create ambari agent scripts for MAPREDUCEv2_CLIENT. (swagle)
Added:
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-yarn/manifests/mapreducev2_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-server/src/main/java/org/apache/ambari/server/Role.java
Modified: incubator/ambari/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1477432&r1=1477431&r2=1477432&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Tue Apr 30 00:45:38 2013
@@ -12,7 +12,9 @@ Trunk (unreleased changes):
NEW FEATURES
- AMBARI-2047. Create ambari agent scripts for historyserver. (swagle)
+ AMBARI-2049. Create ambari agent scripts for MAPREDUCEv2_CLIENT. (swagle)
+
+ AMBARI-2048. Create ambari agent scripts for historyserver. (swagle)
AMBARI-2046. Create ambari agent scripts for Hadoop 2.0 installation, node
manager. (swagle)
Added:
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-yarn/manifests/mapreducev2_client.pp
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-yarn/manifests/mapreducev2_client.pp?rev=1477432&view=auto
==============================================================================
---
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-yarn/manifests/mapreducev2_client.pp
(added)
+++
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-yarn/manifests/mapreducev2_client.pp
Tue Apr 30 00:45:38 2013
@@ -0,0 +1,33 @@
+#
+#
+# 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-yarn::mapreducev2_client(
+ $service_state = $hdp::params::cluster_service_state,
+ $opts = {}
+) inherits hdp-yarn::params
+{
+ if ($service_state == 'no_op') {
+ } elsif ($service_state in 'installed_and_configured') {
+
+ hdp-yarn::package{'hadoop-mapreduce-client':}
+
+ }
+}
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=1477432&r1=1477431&r2=1477432&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
Tue Apr 30 00:45:38 2013
@@ -396,6 +396,14 @@ class hdp::params()
}
},
+ hadoop-mapreduce-client => {
+ 'ALL' => {
+ 64 => {
+ 'ALL' => ['hadoop-mapreduce']
+ }
+ }
+ },
+
yarn-common => {
'ALL' => {
64 => {
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=1477432&r1=1477431&r2=1477432&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
Tue Apr 30 00:45:38 2013
@@ -35,6 +35,7 @@ public enum Role {
JOBTRACKER,
TASKTRACKER,
MAPREDUCE_CLIENT,
+ MAPREDUCEv2_CLIENT,
JAVA_JCE,
HADOOP_CLIENT,
JOBTRACKER_SERVICE_CHECK,