ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject ambari git commit: AMBARI-15885. Owner of /tmp hdfs directory is yarn user on secure blueprint install (aonishuk)
Date Thu, 14 Apr 2016 16:23:00 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.2.2 3b2836d6b -> ec58cd8a5


AMBARI-15885. Owner of /tmp hdfs directory is yarn user on secure blueprint install (aonishuk)


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

Branch: refs/heads/branch-2.2.2
Commit: ec58cd8a5b144492ee3d86ad3b3558d0b901ec25
Parents: 3b2836d
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Thu Apr 14 19:19:42 2016 +0300
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Thu Apr 14 19:22:06 2016 +0300

----------------------------------------------------------------------
 .../common-services/YARN/2.1.0.2.0/package/scripts/yarn.py     | 5 ++---
 .../src/test/python/stacks/2.0.6/YARN/test_historyserver.py    | 6 ++----
 2 files changed, 4 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/ec58cd8a/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 bb2f567..746511e 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
@@ -76,9 +76,8 @@ def yarn(name = None):
         params.HdfsResource('/tmp',
                             action="create_on_execute",
                             type="directory",
-                            owner=params.yarn_user,
-                            group=params.user_group,
-                            mode=0777
+                            owner=params.hdfs_user,
+                            mode=0777,
         )
 
     params.HdfsResource(params.entity_file_history_directory,

http://git-wip-us.apache.org/repos/asf/ambari/blob/ec58cd8a/ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py b/ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py
index 6910113..4bfc16a 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py
@@ -224,8 +224,7 @@ class TestHistoryServer(RMFTestCase):
         principal_name = UnknownConfigurationMock(),
         user = 'hdfs',
         dfs_type = '',
-        owner = 'yarn',
-        group = 'hadoop',
+        owner = 'hdfs',
         hadoop_conf_dir = '/etc/hadoop/conf',
         type = 'directory',
         action = ['create_on_execute'], hdfs_resource_ignore_file='/var/lib/ambari-agent/data/.hdfs_resource_ignore',
@@ -498,8 +497,7 @@ class TestHistoryServer(RMFTestCase):
         principal_name = 'hdfs',
         user = 'hdfs',
         dfs_type = '',
-        owner = 'yarn',
-        group = 'hadoop',
+        owner = 'hdfs',
         hadoop_conf_dir = '/etc/hadoop/conf',
         type = 'directory',
         action = ['create_on_execute'], hdfs_resource_ignore_file='/var/lib/ambari-agent/data/.hdfs_resource_ignore',


Mime
View raw message