ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject [2/2] ambari git commit: AMBARI-17115. [Change log directory prefix for service FLUME] Flume service not starting after changing the log directory (aonishuk)
Date Wed, 08 Jun 2016 10:52:20 GMT
AMBARI-17115. [Change log directory prefix for service FLUME] Flume service not starting after
changing the log directory (aonishuk)


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

Branch: refs/heads/branch-2.4
Commit: f02d0c3087579fb608625e730d36dbaec5a35716
Parents: 7d9818b
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Wed Jun 8 13:52:10 2016 +0300
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Wed Jun 8 13:52:10 2016 +0300

----------------------------------------------------------------------
 .../common-services/FLUME/1.4.0.2.0/package/scripts/flume.py     | 1 +
 ambari-server/src/test/python/stacks/2.0.6/FLUME/test_flume.py   | 4 ++++
 2 files changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/f02d0c30/ambari-server/src/main/resources/common-services/FLUME/1.4.0.2.0/package/scripts/flume.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/FLUME/1.4.0.2.0/package/scripts/flume.py
b/ambari-server/src/main/resources/common-services/FLUME/1.4.0.2.0/package/scripts/flume.py
index 9df2ba6..1ade2c1 100644
--- a/ambari-server/src/main/resources/common-services/FLUME/1.4.0.2.0/package/scripts/flume.py
+++ b/ambari-server/src/main/resources/common-services/FLUME/1.4.0.2.0/package/scripts/flume.py
@@ -105,6 +105,7 @@ def flume(action = None):
     Directory(params.flume_log_dir,
               group=params.user_group,
               owner=params.flume_user,
+              create_parents=True,
               cd_access="a",
               mode=0755,
     )

http://git-wip-us.apache.org/repos/asf/ambari/blob/f02d0c30/ambari-server/src/test/python/stacks/2.0.6/FLUME/test_flume.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/FLUME/test_flume.py b/ambari-server/src/test/python/stacks/2.0.6/FLUME/test_flume.py
index 964280d..4cf43c1 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/FLUME/test_flume.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/FLUME/test_flume.py
@@ -239,6 +239,7 @@ class TestFlumeHandler(RMFTestCase):
                               '/var/log/flume',
                               owner = 'flume',
                               group = 'hadoop',
+                              create_parents = True,
                               cd_access = 'a', 
                               mode=0755
     )
@@ -292,6 +293,7 @@ class TestFlumeHandler(RMFTestCase):
                               '/var/log/flume',
                               owner = 'flume',
                               group = 'hadoop',
+                              create_parents = True,
                               cd_access = 'a',
                               mode=0755)
 
@@ -463,6 +465,7 @@ class TestFlumeHandler(RMFTestCase):
                               owner = 'flume',
                               cd_access = 'a',
                               group = 'hadoop',
+                              create_parents = True,
                               mode=0755)
 
     self.assertResourceCalled('Directory',
@@ -516,6 +519,7 @@ class TestFlumeHandler(RMFTestCase):
                               '/var/log/flume',
                               owner = 'flume',
                               group = 'hadoop',
+                              create_parents = True,
                               cd_access = 'a', 
                               mode=0755)
 


Mime
View raw message