incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swa...@apache.org
Subject git commit: AMBARI-2889. yarn user not created on a host with ambari-server and ambari-agent. (Vitaly Brodetskyi via swagle)
Date Tue, 13 Aug 2013 21:17:26 GMT
Updated Branches:
  refs/heads/trunk 72311b797 -> 90395eee0


AMBARI-2889. yarn user not created on a host with ambari-server and ambari-agent. (Vitaly
Brodetskyi via swagle)


Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/90395eee
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/90395eee
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/90395eee

Branch: refs/heads/trunk
Commit: 90395eee096fd9c9bedd783e2a3f08fa35e49971
Parents: 72311b7
Author: Siddharth Wagle <swagle@hortonworks.com>
Authored: Tue Aug 13 14:16:49 2013 -0700
Committer: Siddharth Wagle <swagle@hortonworks.com>
Committed: Tue Aug 13 14:16:49 2013 -0700

----------------------------------------------------------------------
 .../src/main/puppet/modules/hdp-yarn/manifests/init.pp       | 8 +-------
 ambari-agent/src/main/puppet/modules/hdp/manifests/init.pp   | 8 ++++++++
 2 files changed, 9 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/90395eee/ambari-agent/src/main/puppet/modules/hdp-yarn/manifests/init.pp
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/puppet/modules/hdp-yarn/manifests/init.pp b/ambari-agent/src/main/puppet/modules/hdp-yarn/manifests/init.pp
index bd9a06a..7b16d8f 100644
--- a/ambari-agent/src/main/puppet/modules/hdp-yarn/manifests/init.pp
+++ b/ambari-agent/src/main/puppet/modules/hdp-yarn/manifests/init.pp
@@ -21,17 +21,11 @@
 
 class hdp-yarn::initialize()
 {
-  $yarn_user = $hdp-yarn::params::yarn_user
   $mapred_user = $hdp-yarn::params::mapred_user
   
   ##Process package
   hdp-yarn::package{'yarn-common':}
   
-  # Create yarn user
-  hdp::user { 'yarn_user':
-    user_name => $yarn_user
-  }
-  
   # Create mapred user
   hdp::user { 'mapred_user':
      user_name => $mapred_user
@@ -40,7 +34,7 @@ class hdp-yarn::initialize()
   #Generate common configs
   hdp-yarn::generate_common_configs{'yarn-common-configs':}
   
-  anchor{ 'hdp-yarn::initialize::begin': } Hdp::Package['yarn-common'] -> Hdp::User['yarn_user']
-> Hdp-yarn::Generate_common_configs['yarn-common-configs'] -> anchor{ 'hdp-yarn::initialize::end':
}
+  anchor{ 'hdp-yarn::initialize::begin': } Hdp::Package['yarn-common'] -> Hdp-yarn::Generate_common_configs['yarn-common-configs']
-> anchor{ 'hdp-yarn::initialize::end': }
 }
 
 define hdp-yarn::generate_common_configs() {

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/90395eee/ambari-agent/src/main/puppet/modules/hdp/manifests/init.pp
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/puppet/modules/hdp/manifests/init.pp b/ambari-agent/src/main/puppet/modules/hdp/manifests/init.pp
index 26b5fe7..d355bd3 100644
--- a/ambari-agent/src/main/puppet/modules/hdp/manifests/init.pp
+++ b/ambari-agent/src/main/puppet/modules/hdp/manifests/init.pp
@@ -195,6 +195,14 @@ class hdp(
       Anchor['hdp::begin'] -> Hdp::Group['hdp_user_group'] -> Hdp::User['hive_user']
-> Anchor['hdp::end']  
     }
 
+    if ($hdp::params::rm_host != "") {
+      hdp::user { 'yarn_user':
+        user_name => $hdp::params::yarn_user
+      }
+      
+      Anchor['hdp::begin'] -> Hdp::Group['hdp_user_group'] -> Hdp::User['yarn_user']
-> Anchor['hdp::end']
+    }
+
 }
 
 class hdp::pre_install_pkgs


Mime
View raw message