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-12528. Oozie Server Start failed using non-root agent and umask 027 (aonishuk)
Date Fri, 24 Jul 2015 14:42:22 GMT
AMBARI-12528. Oozie Server Start failed using non-root agent and umask 027 (aonishuk)


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

Branch: refs/heads/branch-2.1
Commit: c78313fa515aa46051fcd3cc6f2d875f2f36b4d9
Parents: 6e41d7a
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Fri Jul 24 17:42:11 2015 +0300
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Fri Jul 24 17:42:11 2015 +0300

----------------------------------------------------------------------
 .../OOZIE/4.0.0.2.0/package/scripts/oozie_service.py           | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/c78313fa/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_service.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_service.py
b/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_service.py
index 9ca6246..5e32031 100644
--- a/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_service.py
+++ b/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_service.py
@@ -80,7 +80,11 @@ def oozie_service(action = 'start', rolling_restart=False):
         exit(1)
 
       if db_connection_check_command:
-        Execute( db_connection_check_command, tries=5, try_sleep=10)
+        Execute( db_connection_check_command, 
+                 tries=5, 
+                 try_sleep=10,
+                 user=params.oozie_user,
+        )
 
       Execute( format("cd {oozie_tmp_dir} && {oozie_home}/bin/ooziedb.sh create -sqlfile
oozie.sql -run"), 
                user = params.oozie_user, not_if = no_op_test,


Mime
View raw message