ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject ambari git commit: AMBARI-9947 Oozie alert after ambari upgrade 1.7.0->2.0.0 secured cluster (dsen)
Date Thu, 05 Mar 2015 17:32:32 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.0.0 3662bd41f -> e9623812e


AMBARI-9947 Oozie alert after ambari upgrade 1.7.0->2.0.0 secured cluster (dsen)


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

Branch: refs/heads/branch-2.0.0
Commit: e9623812ea36a4e3b7df95358e34636852a412f3
Parents: 3662bd4
Author: Dmytro Sen <dsen@apache.org>
Authored: Thu Mar 5 19:27:31 2015 +0200
Committer: Dmytro Sen <dsen@apache.org>
Committed: Thu Mar 5 19:32:14 2015 +0200

----------------------------------------------------------------------
 .../common-services/OOZIE/4.0.0.2.0/package/scripts/oozie.py      | 3 +--
 .../src/test/python/stacks/2.0.6/OOZIE/test_oozie_server.py       | 2 ++
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/e9623812/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie.py
b/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie.py
index 8bd697a..29878fb 100644
--- a/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie.py
+++ b/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie.py
@@ -213,5 +213,4 @@ def oozie_server_specific():
         group = params.user_group,
         mode = 0664
     )
-  pass
-  
+  Execute (format("chown -R {oozie_user}:{user_group} {oozie_server_dir}"))

http://git-wip-us.apache.org/repos/asf/ambari/blob/e9623812/ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_oozie_server.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_oozie_server.py b/ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_oozie_server.py
index 8d388ab..fda154f 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_oozie_server.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_oozie_server.py
@@ -294,6 +294,7 @@ class TestOozieServer(RMFTestCase):
         not_if = 'ls /var/run/oozie/oozie.pid >/dev/null 2>&1 && ps -p
`cat /var/run/oozie/oozie.pid` >/dev/null 2>&1',
         user = 'oozie',
     )
+    self.assertResourceCalled('Execute', 'chown -R oozie:hadoop /var/lib/oozie/oozie-server',)
 
 
   def assert_configure_secured(self):
@@ -447,6 +448,7 @@ class TestOozieServer(RMFTestCase):
         not_if = 'ls /var/run/oozie/oozie.pid >/dev/null 2>&1 && ps -p
`cat /var/run/oozie/oozie.pid` >/dev/null 2>&1',
         user = 'oozie',
     )
+    self.assertResourceCalled('Execute', 'chown -R oozie:hadoop /var/lib/oozie/oozie-server',)
 
     def test_configure_default_hdp22(self):
       config_file = "stacks/2.0.6/configs/default.json"


Mime
View raw message