You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vb...@apache.org on 2014/09/15 19:41:18 UTC

git commit: AMBARI-7313. Services not starting up after enabling security.(vbrodetskyi)

Repository: ambari
Updated Branches:
  refs/heads/trunk 66048a053 -> bee1d09b0


AMBARI-7313. Services not starting up after enabling security.(vbrodetskyi)


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

Branch: refs/heads/trunk
Commit: bee1d09b0e82f8dea085b227528995dcf879dd23
Parents: 66048a0
Author: Vitaly Brodetskyi <vb...@hortonworks.com>
Authored: Mon Sep 15 20:40:52 2014 +0300
Committer: Vitaly Brodetskyi <vb...@hortonworks.com>
Committed: Mon Sep 15 20:40:52 2014 +0300

----------------------------------------------------------------------
 .../1.3.2/hooks/before-START/scripts/shared_initialization.py  | 3 ++-
 .../2.0.6/hooks/before-START/scripts/shared_initialization.py  | 3 ++-
 .../stacks/1.3.2/hooks/before-START/test_before_start.py       | 6 ++++--
 .../stacks/2.0.6/hooks/before-START/test_before_start.py       | 6 ++++--
 4 files changed, 12 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/bee1d09b/ambari-server/src/main/resources/stacks/HDP/1.3.2/hooks/before-START/scripts/shared_initialization.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/1.3.2/hooks/before-START/scripts/shared_initialization.py b/ambari-server/src/main/resources/stacks/HDP/1.3.2/hooks/before-START/scripts/shared_initialization.py
index 669414c..60956b0 100644
--- a/ambari-server/src/main/resources/stacks/HDP/1.3.2/hooks/before-START/scripts/shared_initialization.py
+++ b/ambari-server/src/main/resources/stacks/HDP/1.3.2/hooks/before-START/scripts/shared_initialization.py
@@ -39,7 +39,8 @@ def setup_hadoop():
     Directory(params.hdfs_log_dir_prefix,
               recursive=True,
               owner='root',
-              group='root'
+              group=params.user_group,
+              mode=0775
     )
     Directory(params.hadoop_pid_dir_prefix,
               recursive=True,

http://git-wip-us.apache.org/repos/asf/ambari/blob/bee1d09b/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 0d00aca..3c77761 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
@@ -38,7 +38,8 @@ def setup_hadoop():
     Directory(params.hdfs_log_dir_prefix,
               recursive=True,
               owner='root',
-              group='root'
+              group=params.user_group,
+              mode=0775
     )
     Directory(params.hadoop_pid_dir_prefix,
               recursive=True,

http://git-wip-us.apache.org/repos/asf/ambari/blob/bee1d09b/ambari-server/src/test/python/stacks/1.3.2/hooks/before-START/test_before_start.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/1.3.2/hooks/before-START/test_before_start.py b/ambari-server/src/test/python/stacks/1.3.2/hooks/before-START/test_before_start.py
index 112b3e8..d569a95 100644
--- a/ambari-server/src/test/python/stacks/1.3.2/hooks/before-START/test_before_start.py
+++ b/ambari-server/src/test/python/stacks/1.3.2/hooks/before-START/test_before_start.py
@@ -41,7 +41,8 @@ class TestHookBeforeStart(RMFTestCase):
                               )
     self.assertResourceCalled('Directory', '/var/log/hadoop',
                               owner = 'root',
-                              group = 'root',
+                              group = 'hadoop',
+                              mode = 0775,
                               recursive = True,
                               )
     self.assertResourceCalled('Directory', '/var/run/hadoop',
@@ -99,7 +100,8 @@ class TestHookBeforeStart(RMFTestCase):
                               )
     self.assertResourceCalled('Directory', '/var/log/hadoop',
                               owner = 'root',
-                              group = 'root',
+                              group = 'hadoop',
+                              mode = 0775,
                               recursive = True,
                               )
     self.assertResourceCalled('Directory', '/var/run/hadoop',

http://git-wip-us.apache.org/repos/asf/ambari/blob/bee1d09b/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 1eafe66..54b956e 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
@@ -40,7 +40,8 @@ class TestHookBeforeStart(RMFTestCase):
                               )
     self.assertResourceCalled('Directory', '/var/log/hadoop',
                               owner = 'root',
-                              group = 'root',
+                              group = 'hadoop',
+                              mode = 0775,
                               recursive = True,
                               )
     self.assertResourceCalled('Directory', '/var/run/hadoop',
@@ -100,7 +101,8 @@ class TestHookBeforeStart(RMFTestCase):
                               )
     self.assertResourceCalled('Directory', '/var/log/hadoop',
                               owner = 'root',
-                              group = 'root',
+                              group = 'hadoop',
+                              mode = 0775,
                               recursive = True,
                               )
     self.assertResourceCalled('Directory', '/var/run/hadoop',