ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmitriu...@apache.org
Subject [2/2] ambari git commit: AMBARI-17794. Oozie Server Start is failed after upgrade from 2.2.2.0 to 2.4.0.0 (dlysnichenko)
Date Tue, 19 Jul 2016 18:00:56 GMT
AMBARI-17794. Oozie Server Start is failed after upgrade from 2.2.2.0 to 2.4.0.0 (dlysnichenko)


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

Branch: refs/heads/trunk
Commit: 7c20a9368d3779b1638c14161d3ae949a3073832
Parents: 060d175
Author: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Authored: Tue Jul 19 21:00:16 2016 +0300
Committer: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Committed: Tue Jul 19 21:00:16 2016 +0300

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/7c20a936/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 0713c97..2316378 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
@@ -18,6 +18,8 @@ limitations under the License.
 
 """
 import os
+
+from resource_management.core import sudo
 from resource_management.core.shell import as_user
 from resource_management.core.logger import Logger
 from resource_management.core.resources.service import Service
@@ -95,7 +97,7 @@ def oozie_service(action = 'start', upgrade_type=None):
         exit(1)
 
       if db_connection_check_command:
-        os.chmod(params.check_db_connection_jar, 0o755)
+        sudo.chmod(params.check_db_connection_jar, 0755)
         Execute( db_connection_check_command, 
                  tries=5, 
                  try_sleep=10,


Mime
View raw message