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-10415. Sometimes Datanode start fails when using non-default umask (aonishuk)
Date Fri, 10 Apr 2015 09:29:11 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 7f933e321 -> b8d2992e4


AMBARI-10415. Sometimes Datanode start fails when using non-default umask (aonishuk)


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

Branch: refs/heads/trunk
Commit: b8d2992e454f62d988e9fb73a77c84fb49a9fa41
Parents: 7f933e3
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Fri Apr 10 12:29:04 2015 +0300
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Fri Apr 10 12:29:04 2015 +0300

----------------------------------------------------------------------
 .../2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py | 5 +++++
 .../stacks/2.0.6/hooks/before-INSTALL/test_before_install.py    | 4 ++++
 2 files changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/b8d2992e/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py
b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py
index 8adc550..28aa427 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py
@@ -62,6 +62,11 @@ def setup_java():
           not_if = format("test -e {java_exec}")
   )
   
+  File(format("{java_home}/bin/java"),
+          mode=0755,
+          cd_access="a",
+  )
+  
   Execute(("chgrp","-R", params.user_group, params.java_home),
           sudo = True,          
   )

http://git-wip-us.apache.org/repos/asf/ambari/blob/b8d2992e/ambari-server/src/test/python/stacks/2.0.6/hooks/before-INSTALL/test_before_install.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/hooks/before-INSTALL/test_before_install.py
b/ambari-server/src/test/python/stacks/2.0.6/hooks/before-INSTALL/test_before_install.py
index 3c89fb3..e752427 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/hooks/before-INSTALL/test_before_install.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/hooks/before-INSTALL/test_before_install.py
@@ -56,6 +56,10 @@ class TestHookBeforeInstall(RMFTestCase):
     self.assertResourceCalled('Execute', 'mkdir -p /tmp/jdk && cd /tmp/jdk &&
tar -xf /tmp/AMBARI-artifacts//jdk-7u67-linux-x64.tar.gz && ambari-sudo.sh cp -rp
/tmp/jdk/* /usr/jdk64',
         not_if = 'test -e /usr/jdk64/jdk1.7.0_45/bin/java',
     )
+    self.assertResourceCalled('File', '/usr/jdk64/jdk1.7.0_45/bin/java',
+        mode = 0755,
+        cd_access = "a",
+    )
     self.assertResourceCalled('Execute', ('chgrp', '-R', u'hadoop', u'/usr/jdk64/jdk1.7.0_45'),
         sudo = True,
     )


Mime
View raw message