Ver Fonte

AMBARI-2049. Create ambari agent scripts for MAPREDUCEv2_CLIENT. (swagle)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1477432 13f79535-47bb-0310-9956-ffa450edef68
Siddharth Wagle há 12 anos atrás
pai
commit
e09005b072

+ 3 - 1
CHANGES.txt

@@ -12,7 +12,9 @@ Trunk (unreleased changes):
 
 
  NEW FEATURES
  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 
  AMBARI-2046. Create ambari agent scripts for Hadoop 2.0 installation, node 
  manager. (swagle)
  manager. (swagle)

+ 33 - 0
ambari-agent/src/main/puppet/modules/hdp-yarn/manifests/mapreducev2_client.pp

@@ -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':}
+
+  }
+}

+ 8 - 0
ambari-agent/src/main/puppet/modules/hdp/manifests/params.pp

@@ -396,6 +396,14 @@ class hdp::params()
         }
         }
       },
       },
 
 
+    hadoop-mapreduce-client => {
+      'ALL' => {
+        64 => {
+          'ALL' => ['hadoop-mapreduce']
+        }
+      }
+    },
+
     yarn-common => { 
     yarn-common => { 
       'ALL' => {
       'ALL' => {
         64 => {
         64 => {

+ 1 - 0
ambari-server/src/main/java/org/apache/ambari/server/Role.java

@@ -35,6 +35,7 @@ public enum Role {
   JOBTRACKER,
   JOBTRACKER,
   TASKTRACKER,
   TASKTRACKER,
   MAPREDUCE_CLIENT,
   MAPREDUCE_CLIENT,
+  MAPREDUCEv2_CLIENT,
   JAVA_JCE,
   JAVA_JCE,
   HADOOP_CLIENT,
   HADOOP_CLIENT,
   JOBTRACKER_SERVICE_CHECK,
   JOBTRACKER_SERVICE_CHECK,