You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by rl...@apache.org on 2015/01/22 22:30:03 UTC
ambari git commit: AMBARI-9279. MapReduce2 Service Check fails after
enabling Kerberos with permission issue in local filesystem (rlevas)
Repository: ambari
Updated Branches:
refs/heads/trunk 06277ee15 -> 08738a55d
AMBARI-9279. MapReduce2 Service Check fails after enabling Kerberos with permission issue in local filesystem (rlevas)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/08738a55
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/08738a55
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/08738a55
Branch: refs/heads/trunk
Commit: 08738a55d5558e0850ab6c6e33b5ef94a11932ee
Parents: 06277ee
Author: Robert Levas <rl...@hortonworks.com>
Authored: Thu Jan 22 16:29:52 2015 -0500
Committer: Robert Levas <rl...@hortonworks.com>
Committed: Thu Jan 22 16:30:00 2015 -0500
----------------------------------------------------------------------
.../common-services/YARN/2.1.0.2.0/package/scripts/yarn.py | 5 +++++
.../src/test/python/stacks/2.0.6/YARN/test_nodemanager.py | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/08738a55/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py b/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py
index 3bd4825..4ae649c 100644
--- a/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py
+++ b/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py
@@ -70,6 +70,11 @@ def yarn(name = None):
mode=0775
)
+ if params.security_enabled:
+ smokeuser_directories = [os.path.join(dir, 'usercache' ,params.smokeuser)
+ for dir in params.nm_local_dirs.split(',')]
+ for directory in smokeuser_directories:
+ Execute(format("chown -R {params.smokeuser} {directory}"))
Directory([params.yarn_pid_dir_prefix, params.yarn_pid_dir, params.yarn_log_dir],
owner=params.yarn_user,
group=params.user_group,
http://git-wip-us.apache.org/repos/asf/ambari/blob/08738a55/ambari-server/src/test/python/stacks/2.0.6/YARN/test_nodemanager.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/YARN/test_nodemanager.py b/ambari-server/src/test/python/stacks/2.0.6/YARN/test_nodemanager.py
index fbf01c6..d852ad1 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/YARN/test_nodemanager.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/YARN/test_nodemanager.py
@@ -438,6 +438,7 @@ class TestNodeManager(RMFTestCase):
mode = 0775,
cd_access='a'
)
+ self.assertResourceCalled('Execute', 'chown -R ambari-qa /hadoop/yarn/local/usercache/ambari-qa')
self.assertResourceCalled('Directory', '/var/run/hadoop-yarn',
owner = 'yarn',
group = 'hadoop',
@@ -751,4 +752,4 @@ class TestNodeManager(RMFTestCase):
hdp_stack_version = self.STACK_VERSION,
target = RMFTestCase.TARGET_COMMON_SERVICES
)
- put_structured_out_mock.assert_called_with({"securityState": "UNSECURED"})
\ No newline at end of file
+ put_structured_out_mock.assert_called_with({"securityState": "UNSECURED"})