ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject [1/2] ambari git commit: AMBARI-12255. DATANODE START failed (aonishuk)
Date Thu, 02 Jul 2015 12:56:29 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 0dd18ed64 -> bdec7c017
  refs/heads/trunk d6ceb5c5d -> a871dd140


AMBARI-12255. DATANODE START failed  (aonishuk)


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

Branch: refs/heads/trunk
Commit: a871dd1403f8adbad682296367ea1169f87df129
Parents: d6ceb5c
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Thu Jul 2 15:56:18 2015 +0300
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Thu Jul 2 15:56:18 2015 +0300

----------------------------------------------------------------------
 .../2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py  | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a871dd14/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py
b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py
index fede024..8163f51 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py
@@ -27,6 +27,7 @@ from resource_management.libraries.functions.format import format
 from resource_management.libraries.functions import conf_select
 from resource_management.libraries.resources.xml_config import XmlConfig
 from resource_management.libraries.script import Script
+from resource_management.core.resources.system import Directory
 
 
 def setup_hdp_install_directory():
@@ -121,6 +122,10 @@ def _link_configs(package, version, old_conf, link_conf):
     try:
       Execute(as_sudo(["cp", "-R", "-p", os.path.join(old_conf, "*"), versioned_conf], auto_escape=False),
         logoutput=True)
+      Directory(versioned_conf,
+                mode=0755,
+                cd_access='a'
+      )
     except:
       pass
 


Mime
View raw message