AMBARI-3966. Secure cluster: task-controller binary should be owned by the group specified in taskcontroller.cfg. (jaimin)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/389279b6 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/389279b6 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/389279b6 Branch: refs/heads/branch-1.4 Commit: 389279b6f4405abc589c15b89615cdd4e1bfc20b Parents: 39c17ac Author: Jaimin Jetly <[email protected]> Authored: Thu Dec 5 14:29:56 2013 -0800 Committer: Yusaku Sako <[email protected]> Committed: Wed Dec 18 14:12:58 2013 -0800 ---------------------------------------------------------------------- ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/init.pp | 2 +- ambari-agent/src/main/puppet/modules/hdp-yarn/manifests/init.pp | 2 +- ambari-agent/src/main/puppet/modules/hdp-yarn/manifests/params.pp | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/389279b6/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/init.pp ---------------------------------------------------------------------- diff --git a/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/init.pp b/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/init.pp index da3d1cb..a734483 100644 --- a/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/init.pp +++ b/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/init.pp @@ -288,7 +288,7 @@ class hdp-hadoop( if ($hdp::params::security_enabled == true) { file { "${hdp::params::hadoop_bin}/task-controller": owner => 'root', - group => $hdp::params::user_group, + group => $hdp-hadoop::params::mapred_tt_group, mode => '6050', require => Hdp-hadoop::Package['hadoop'], before => Anchor['hdp-hadoop::end'] http://git-wip-us.apache.org/repos/asf/ambari/blob/389279b6/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 a8bbf80..5d74f86 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 @@ -152,7 +152,7 @@ define hdp-yarn::generate_common_configs() { $container_executor = "${hdp::params::yarn_container_bin}/container-executor" file { $container_executor: ensure => present, - group => $hdp::params::user_group, + group => $hdp-yarn::params::yarn_executor_container_group, mode => 6050 } http://git-wip-us.apache.org/repos/asf/ambari/blob/389279b6/ambari-agent/src/main/puppet/modules/hdp-yarn/manifests/params.pp ---------------------------------------------------------------------- diff --git a/ambari-agent/src/main/puppet/modules/hdp-yarn/manifests/params.pp b/ambari-agent/src/main/puppet/modules/hdp-yarn/manifests/params.pp index 637b515..c644411 100644 --- a/ambari-agent/src/main/puppet/modules/hdp-yarn/manifests/params.pp +++ b/ambari-agent/src/main/puppet/modules/hdp-yarn/manifests/params.pp @@ -28,6 +28,7 @@ class hdp-yarn::params( ## security params $security_enabled = $hdp::params::security_enabled $smoke_user_keytab = $hdp::params::smokeuser_keytab + $yarn_executor_container_group = hdp_default("yarn-site/yarn.nodemanager.linux-container-executor.group","hadoop") $kinit_cmd = "${hdp::params::kinit_path_local} -kt ${smoke_user_keytab} ${smoke_test_user};" ## yarn-env
