ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject ambari git commit: AMBARI-19180 Service Flume failed to start with "cannot open /grid/0/log/flume/a1.out for reading: Permission denied" (dsen)
Date Fri, 24 Feb 2017 17:14:50 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk dfdd00fd0 -> 378a49e33


AMBARI-19180 Service Flume failed to start with "cannot open /grid/0/log/flume/a1.out for
reading: Permission denied" (dsen)


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

Branch: refs/heads/trunk
Commit: 378a49e333a5aee9eae11814f05455105faa95e7
Parents: dfdd00f
Author: Dmytro Sen <dsen@apache.org>
Authored: Fri Feb 24 19:14:42 2017 +0200
Committer: Dmytro Sen <dsen@apache.org>
Committed: Fri Feb 24 19:14:42 2017 +0200

----------------------------------------------------------------------
 .../common-services/FLUME/1.4.0.2.0/package/scripts/flume.py     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/378a49e3/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 e1d1874..6b1d286 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
@@ -205,7 +205,7 @@ def flume(action = None):
                   tries=20,
                   try_sleep=10)
         except:
-          show_logs(params.flume_log_dir, None)
+          show_logs(params.flume_log_dir, params.flume_user)
           raise
 
     pass
@@ -232,7 +232,7 @@ def flume(action = None):
           Execute(("kill", "-9", pid), sudo=True)
       
       if not await_flume_process_termination(pid_file, try_count=10):
-        show_logs(params.flume_log_dir, None)
+        show_logs(params.flume_log_dir, params.flume_user)
         raise Fail("Can't stop flume agent: {0}".format(agent))
         
       File(pid_file, action = 'delete')


Mime
View raw message