Quellcode durchsuchen

AMBARI-5219. Tez user being created (aonishuk)

Andrew Onischuk vor 11 Jahren
Ursprung
Commit
b5a072f3a7

+ 1 - 1
ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/params.py

@@ -38,7 +38,7 @@ zk_user = config['configurations']['global']['zk_user']
 gmetad_user = config['configurations']['global']["gmetad_user"]
 gmond_user = config['configurations']['global']["gmond_user"]
 storm_user = config['configurations']['global']['storm_user']
-tez_user = 'tez'
+tez_user = config['configurations']['global']['tez_user']
 falcon_user = config['configurations']['global']['falcon_user']
 
 user_group = config['configurations']['global']['user_group']

+ 5 - 0
ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/configuration/global.xml

@@ -121,6 +121,11 @@
     <value>hive</value>
     <description>Hive User.</description>
   </property>
+  <property>
+    <name>tez_user</name>
+    <value>tez</value>
+    <description></description>
+  </property>
 
   <!--HCAT-->
 

+ 1 - 1
ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/params.py

@@ -168,7 +168,7 @@ kinit_path_local = functions.get_kinit_path([default("kinit_path_local",None), "
 tez_lib_uris = default("/configurations/tez-site/tez.lib.uris", None)
 tez_local_api_jars = '/usr/lib/tez/tez*.jar'
 tez_local_lib_jars = '/usr/lib/tez/lib/*.jar'
-tez_user = 'tez'
+tez_user = config['configurations']['global']['tez_user']
 
 hive_exec_jar_path = '/usr/lib/hive/lib/hive-exec.jar'
 hive_exec_hdfs_path = default('/configurations/hive-site/hive.jar.directory', '/apps/hive/install')

+ 29 - 0
ambari-server/src/main/resources/stacks/HDP/2.1/services/TEZ/configuration/global.xml

@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+<!--
+/**
+ * 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.
+ */
+-->
+
+<configuration>
+  <property>
+    <name>tez_user</name>
+    <value>tez</value>
+    <description></description>
+  </property>
+</configuration>

+ 1 - 1
ambari-server/src/main/resources/stacks/HDP/2.1/services/TEZ/package/scripts/params.py

@@ -28,5 +28,5 @@ config_dir = "/etc/tez/conf"
 hadoop_home = '/usr'
 java64_home = config['hostLevelParams']['java_home']
 
-tez_user = 'tez'
+tez_user = config['configurations']['global']['tez_user']
 user_group = config['configurations']['global']['user_group']

+ 1 - 0
ambari-server/src/test/python/stacks/2.0.6/configs/default.json

@@ -291,6 +291,7 @@
             "falcon_user": "falcon",
             "falcon_port": "15000",
             "falcon_local_dir": "/hadoop/falcon",
+            "tez_user": "tez",
             "rca_enabled": "false"
         }, 
         "capacity-scheduler": {

+ 1 - 0
ambari-server/src/test/python/stacks/2.1/configs/default.json

@@ -331,6 +331,7 @@
             "falcon_user": "falcon",
             "falcon_port": "15000",
             "falcon_local_dir": "/hadoop/falcon",
+            "tez_user": "tez",
             "rca_enabled": "false"
         }, 
         "capacity-scheduler": {

+ 1 - 0
ambari-server/src/test/python/stacks/2.1/configs/secured.json

@@ -435,6 +435,7 @@
             "falcon_user": "falcon",
             "falcon_port": "15000",
             "falcon_local_dir": "/hadoop/falcon",
+            "tez_user": "tez",
             "rca_enabled": "false"
         }, 
         "capacity-scheduler": {