You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2015/02/05 18:00:04 UTC

ambari git commit: AMBARI-9493. Failed to start Datanode with non-default umask (aonishuk)

Repository: ambari
Updated Branches:
  refs/heads/trunk c52f70bcf -> 1548d0a47


AMBARI-9493. Failed to start Datanode with 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/1548d0a4
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/1548d0a4
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/1548d0a4

Branch: refs/heads/trunk
Commit: 1548d0a474c2f969921127b13351214d2c967219
Parents: c52f70b
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Thu Feb 5 18:59:36 2015 +0200
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Thu Feb 5 18:59:36 2015 +0200

----------------------------------------------------------------------
 .../hooks/before-START/scripts/shared_initialization.py     | 8 +++++---
 .../stacks/2.0.6/hooks/before-START/test_before_start.py    | 9 +++++++++
 2 files changed, 14 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/1548d0a4/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py
index 5641928..17f68ff 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py
@@ -41,17 +41,19 @@ def setup_hadoop():
               recursive=True,
               owner='root',
               group=params.user_group,
-              mode=0775
+              mode=0775,
+              cd_access='a',
     )
     Directory(params.hadoop_pid_dir_prefix,
               recursive=True,
               owner='root',
-              group='root'
+              group='root',
+              cd_access='a',
     )
-  #this doesn't needed with stack 1
     Directory(params.hadoop_tmp_dir,
               recursive=True,
               owner=params.hdfs_user,
+              cd_access='a',
               )
   #files
     if params.security_enabled:

http://git-wip-us.apache.org/repos/asf/ambari/blob/1548d0a4/ambari-server/src/test/python/stacks/2.0.6/hooks/before-START/test_before_start.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/hooks/before-START/test_before_start.py b/ambari-server/src/test/python/stacks/2.0.6/hooks/before-START/test_before_start.py
index 07f861f..f606130 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/hooks/before-START/test_before_start.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/hooks/before-START/test_before_start.py
@@ -41,15 +41,18 @@ class TestHookBeforeStart(RMFTestCase):
                               group = 'hadoop',
                               mode = 0775,
                               recursive = True,
+                              cd_access = 'a',
                               )
     self.assertResourceCalled('Directory', '/var/run/hadoop',
                               owner = 'root',
                               group = 'root',
                               recursive = True,
+                              cd_access = 'a',
                               )
     self.assertResourceCalled('Directory', '/tmp/hadoop-hdfs',
                               owner = 'hdfs',
                               recursive = True,
+                              cd_access = 'a',
                               )
     self.assertResourceCalled('File', '/etc/hadoop/conf/commons-logging.properties',
                               content = Template('commons-logging.properties.j2'),
@@ -99,15 +102,18 @@ class TestHookBeforeStart(RMFTestCase):
                               group = 'hadoop',
                               mode = 0775,
                               recursive = True,
+                              cd_access = 'a',
                               )
     self.assertResourceCalled('Directory', '/var/run/hadoop',
                               owner = 'root',
                               group = 'root',
                               recursive = True,
+                              cd_access = 'a',
                               )
     self.assertResourceCalled('Directory', '/tmp/hadoop-hdfs',
                               owner = 'hdfs',
                               recursive = True,
+                              cd_access = 'a',
                               )
     self.assertResourceCalled('File', '/etc/hadoop/conf/commons-logging.properties',
                               content = Template('commons-logging.properties.j2'),
@@ -174,15 +180,18 @@ class TestHookBeforeStart(RMFTestCase):
                               group = 'hadoop',
                               mode = 0775,
                               recursive = True,
+                              cd_access = 'a',
                               )
     self.assertResourceCalled('Directory', '/var/run/hadoop',
                               owner = 'root',
                               group = 'root',
                               recursive = True,
+                              cd_access = 'a',
                               )
     self.assertResourceCalled('Directory', '/tmp/hadoop-hdfs',
                               owner = 'hdfs',
                               recursive = True,
+                              cd_access = 'a',
                               )
     self.assertResourceCalled('File', '/etc/hadoop/conf/commons-logging.properties',
                               content = Template('commons-logging.properties.j2'),