Repository: ambari
Updated Branches:
  refs/heads/trunk 902e62f21 -> 9ff0e9808


AMBARI-5989. Ambari 1.5.1.110 changes ownership of /tmp on a linux system to 
hdfs:root which is preventing ssh logins via LDAP to work.(vbrodetskyi)


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

Branch: refs/heads/trunk
Commit: 9ff0e9808904b52be143fdeed8121b85f328e58a
Parents: 902e62f
Author: Vitaly Brodetskyi <[email protected]>
Authored: Mon Jun 2 15:20:13 2014 +0300
Committer: Vitaly Brodetskyi <[email protected]>
Committed: Mon Jun 2 15:20:13 2014 +0300

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/9ff0e980/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 3c14288..4a9bc42 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
@@ -45,7 +45,7 @@ def setup_hadoop():
             group='root'
   )
   #this doesn't needed with stack 1
-  Directory(os.path.dirname(params.hadoop_tmp_dir),
+  Directory(params.hadoop_tmp_dir,
             recursive=True,
             owner=params.hdfs_user,
             )

http://git-wip-us.apache.org/repos/asf/ambari/blob/9ff0e980/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 4c72bf7..9274fd5 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
@@ -48,7 +48,7 @@ class TestHookBeforeStart(RMFTestCase):
                               group = 'root',
                               recursive = True,
                               )
-    self.assertResourceCalled('Directory', '/tmp',
+    self.assertResourceCalled('Directory', '/tmp/hadoop-hdfs',
                               owner = 'hdfs',
                               recursive = True,
                               )
@@ -108,7 +108,7 @@ class TestHookBeforeStart(RMFTestCase):
                               group = 'root',
                               recursive = True,
                               )
-    self.assertResourceCalled('Directory', '/tmp',
+    self.assertResourceCalled('Directory', '/tmp/hadoop-hdfs',
                               owner = 'hdfs',
                               recursive = True,
                               )

Reply via email to