Updated Branches:
  refs/heads/trunk ad24d766d -> 9ea2792f3

AMBARI-2892. hdfs user is required on hosts that have only yarn components are 
deployed. (smohanty)


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

Branch: refs/heads/trunk
Commit: 684cff3813ac7808f29e6b34bd0f5184bd1d2de2
Parents: ad24d76
Author: Sumit Mohanty <[email protected]>
Authored: Wed Aug 14 13:53:26 2013 -0700
Committer: Sumit Mohanty <[email protected]>
Committed: Wed Aug 14 13:53:26 2013 -0700

----------------------------------------------------------------------
 .../puppet/modules/hdp-yarn/manifests/init.pp     | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/684cff38/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 19b3c12..6140054 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
@@ -23,30 +23,30 @@ class hdp-yarn::initialize()
 {
   $mapred_user = $hdp-yarn::params::mapred_user
   $hdfs_user = $hdp::params::hdfs_user
-  $yarn_user = $hdp::params::yarn_user
+  $yarn_user = $hdp-yarn::params::yarn_user
 
   ##Process package
   hdp-yarn::package{'yarn-common':}
-  
+
   # Create users
-  hdp::user { 'mapred_user':
+  hdp::user { 'yarn_mapred_user':
      user_name => $mapred_user
   }
 
-  hdp::user { 'hdfs_user':
+  hdp::user { 'yarn_hdfs_user':
      user_name => $hdfs_user
   }
 
-  hdp::user { 'yarn_user':
-    user_name => $yarn_user
+  hdp::user { 'yarn_yarn_user':
+     user_name => $yarn_user
   }
 
   #Generate common configs
   hdp-yarn::generate_common_configs{'yarn-common-configs':}
-  
+
   anchor{ 'hdp-yarn::initialize::begin': } Hdp::Package['yarn-common'] ->
-  Hdp::User<|title == $hdfs_user or title == $mapred_user or title == 
$yarn_user|> ->
-  Hdp-yarn::Generate_common_configs['yarn-common-configs'] -> anchor{ 
'hdp-yarn::initialize::end': }
+    Hdp::User<|title == 'yarn_hdfs_user' or title == 'yarn_mapred_user' or 
title == 'yarn_yarn_user'|> ->
+      Hdp-yarn::Generate_common_configs['yarn-common-configs'] -> anchor{ 
'hdp-yarn::initialize::end': }
 }
 
 define hdp-yarn::generate_common_configs() {

Reply via email to