Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 f79507900 -> 2166c28cf


AMBARI-16765. While restarting node manager through Ambari, the yarn.local.dir 
permission got change from 755 to 775, and the other way around, causing long 
restarting time for nodemanager. (mpapirkovskyy)


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

Branch: refs/heads/branch-2.4
Commit: 2166c28cff63329f3044f08c7dac3cb44b9c887d
Parents: f795079
Author: Myroslav Papirkovskyi <[email protected]>
Authored: Thu May 19 14:17:27 2016 +0300
Committer: Myroslav Papirkovskyi <[email protected]>
Committed: Thu May 19 14:37:35 2016 +0300

----------------------------------------------------------------------
 .../common-services/YARN/2.1.0.2.0/package/scripts/yarn.py     | 2 +-
 .../src/test/python/stacks/2.0.6/YARN/test_nodemanager.py      | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/2166c28c/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py
 
b/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py
index 5d1be15..6ed4146 100644
--- 
a/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py
+++ 
b/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py
@@ -167,7 +167,7 @@ def yarn(name = None):
                 create_parents = True,
                 cd_access="a",
                 ignore_failures=True,
-                mode=0775,
+                mode=0755,
                 recursive_mode_flags = {'f': 'a+rw', 'd': 'a+rwx'},
                 )
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/2166c28c/ambari-server/src/test/python/stacks/2.0.6/YARN/test_nodemanager.py
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/test/python/stacks/2.0.6/YARN/test_nodemanager.py 
b/ambari-server/src/test/python/stacks/2.0.6/YARN/test_nodemanager.py
index cb8178c..61de03a 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/YARN/test_nodemanager.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/YARN/test_nodemanager.py
@@ -156,7 +156,7 @@ class TestNodeManager(RMFTestCase):
     self.assertResourceCalled('Directory', '/hadoop/yarn/local',
                               owner = 'yarn',
                               group = 'hadoop',
-                              mode = 0775,
+                              mode = 0755,
                               create_parents = True,
                               ignore_failures = True,
                               cd_access='a',
@@ -167,7 +167,7 @@ class TestNodeManager(RMFTestCase):
                               create_parents = True,
                               group = 'hadoop',
                               ignore_failures = True,
-                              mode = 0775,
+                              mode = 0755,
                               cd_access='a',
                               recursive_mode_flags = {'d': 'a+rwx', 'f': 
'a+rw'}
                               )
@@ -354,7 +354,7 @@ class TestNodeManager(RMFTestCase):
                               group = 'hadoop',
                               create_parents = True,
                               ignore_failures = True,
-                              mode = 0775,
+                              mode = 0755,
                               cd_access='a',
                               recursive_mode_flags = {'d': 'a+rwx', 'f': 
'a+rw'},
                               )

Reply via email to