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-14484 JDK was installed with incorrect permissions on agent host (dsen)
Date Wed, 23 Dec 2015 14:39:05 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.2 59d7a3464 -> e83537911


AMBARI-14484 JDK was installed with incorrect permissions on agent host (dsen)


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

Branch: refs/heads/branch-2.2
Commit: e8353791143c508fe89d9ce9bf78c35e25783de4
Parents: 59d7a34
Author: Dmytro Sen <dsen@apache.org>
Authored: Wed Dec 23 16:38:54 2015 +0200
Committer: Dmytro Sen <dsen@apache.org>
Committed: Wed Dec 23 16:38:54 2015 +0200

----------------------------------------------------------------------
 .../2.0.6/hooks/before-ANY/scripts/shared_initialization.py | 9 +++------
 .../python/stacks/2.0.6/hooks/before-ANY/test_before_any.py | 9 +++------
 2 files changed, 6 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/e8353791/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py
b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py
index c2cbe3c..42b2dd7 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py
@@ -211,9 +211,6 @@ def setup_java():
          cd_access="a",
          )
 
-    Execute(("chgrp","-R", params.user_group, params.java_home),
-            sudo = True,
-            )
-    Execute(("chown","-R", getpass.getuser(), params.java_home),
-            sudo = True,
-            )
+    Execute(('chmod', '-R', '755', params.java_home),
+      sudo = True,
+    )
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/e8353791/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 242dc44..3da58cd 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
@@ -186,11 +186,8 @@ class TestHookBeforeInstall(RMFTestCase):
                               mode = 0755,
                               cd_access = "a",
                               )
-    self.assertResourceCalled('Execute', ('chgrp', '-R', u'hadoop', u'/usr/jdk64/jdk1.7.0_45'),
-                              sudo = True,
-                              )
-    self.assertResourceCalled('Execute', ('chown', '-R', 'some_user', u'/usr/jdk64/jdk1.7.0_45'),
-                              sudo = True,
-                              )
+    self.assertResourceCalled('Execute', ('chmod', '-R', '755', u'/usr/jdk64/jdk1.7.0_45'),
+      sudo = True,
+    )
 
     self.assertNoMoreResources()


Mime
View raw message