ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject ambari git commit: Revert "AMBARI-10403. Ambari should not add 'oozie' to users group (aonishuk)"
Date Mon, 20 Apr 2015 22:12:33 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk d9f6bbec2 -> f04358d71


Revert "AMBARI-10403. Ambari should not add 'oozie' to users group (aonishuk)"

This reverts commit ae2e9cf98d2c7ce44cfbeffa79dc7df031ce3956.


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

Branch: refs/heads/trunk
Commit: f04358d7199c2e3e5b2233a91be9ea7f45baa840
Parents: d9f6bbe
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Tue Apr 21 00:57:02 2015 +0300
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Tue Apr 21 01:12:07 2015 +0300

----------------------------------------------------------------------
 .../resources/stacks/HDP/2.0.6/hooks/before-ANY/scripts/params.py  | 2 ++
 .../test/python/stacks/2.0.6/hooks/before-ANY/test_before_any.py   | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/f04358d7/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-ANY/scripts/params.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-ANY/scripts/params.py
b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-ANY/scripts/params.py
index 5cc1358..83ffd64 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-ANY/scripts/params.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-ANY/scripts/params.py
@@ -173,6 +173,8 @@ if has_ganglia_server:
   user_to_groups_dict[gmetad_user] = [gmetad_user]
 if has_tez:
   user_to_groups_dict[tez_user] = [proxyuser_group]
+if has_oozie_server:
+  user_to_groups_dict[oozie_user] = [proxyuser_group]
 
 user_to_gid_dict = collections.defaultdict(lambda:user_group)
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/f04358d7/ambari-server/src/test/python/stacks/2.0.6/hooks/before-ANY/test_before_any.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/hooks/before-ANY/test_before_any.py
b/ambari-server/src/test/python/stacks/2.0.6/hooks/before-ANY/test_before_any.py
index 68a3271..6906a97 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/hooks/before-ANY/test_before_any.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/hooks/before-ANY/test_before_any.py
@@ -53,7 +53,7 @@ class TestHookBeforeInstall(RMFTestCase):
     self.assertResourceCalled('User', 'oozie',
         gid = 'hadoop',
         ignore_failures = False,
-        groups = [u'hadoop'],
+        groups = [u'users'],
     )
     self.assertResourceCalled('User', 'nobody',
         gid = 'hadoop',


Mime
View raw message