ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alejan...@apache.org
Subject ambari git commit: AMBARI-8355. HDFS core-site configs do not save after restart all needed components on 1.3 stack (Andrew Onischuk via alejandro)
Date Mon, 17 Nov 2014 23:54:12 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk a496f8bc1 -> 1bf9a49cc


AMBARI-8355. HDFS core-site configs do not save after restart all needed components on 1.3
stack (Andrew Onischuk via alejandro)


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

Branch: refs/heads/trunk
Commit: 1bf9a49cccc79d989c1fb7a6c8c68e700492d237
Parents: a496f8b
Author: Alejandro Fernandez <afernandez@hortonworks.com>
Authored: Mon Nov 17 15:49:38 2014 -0800
Committer: Alejandro Fernandez <afernandez@hortonworks.com>
Committed: Mon Nov 17 15:49:38 2014 -0800

----------------------------------------------------------------------
 .../1.3.2/hooks/before-ANY/scripts/shared_initialization.py   | 7 +++++++
 .../python/stacks/1.3.2/hooks/before-ANY/test_before_any.py   | 7 +++++++
 2 files changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/1bf9a49c/ambari-server/src/main/resources/stacks/HDP/1.3.2/hooks/before-ANY/scripts/shared_initialization.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/1.3.2/hooks/before-ANY/scripts/shared_initialization.py
b/ambari-server/src/main/resources/stacks/HDP/1.3.2/hooks/before-ANY/scripts/shared_initialization.py
index e20637c..25f040e 100644
--- a/ambari-server/src/main/resources/stacks/HDP/1.3.2/hooks/before-ANY/scripts/shared_initialization.py
+++ b/ambari-server/src/main/resources/stacks/HDP/1.3.2/hooks/before-ANY/scripts/shared_initialization.py
@@ -113,4 +113,11 @@ def setup_hadoop_env():
          owner=tc_owner,
          content=InlineTemplate(params.hadoop_env_sh_template)
     )
+    XmlConfig("core-site.xml",
+              conf_dir=params.hadoop_conf_dir,
+              configurations=params.config['configurations']['core-site'],
+              configuration_attributes=params.config['configuration_attributes']['core-site'],
+              owner=params.hdfs_user,
+              group=params.user_group
+    )
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/1bf9a49c/ambari-server/src/test/python/stacks/1.3.2/hooks/before-ANY/test_before_any.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/1.3.2/hooks/before-ANY/test_before_any.py
b/ambari-server/src/test/python/stacks/1.3.2/hooks/before-ANY/test_before_any.py
index d0f8bbf..c382d80 100644
--- a/ambari-server/src/test/python/stacks/1.3.2/hooks/before-ANY/test_before_any.py
+++ b/ambari-server/src/test/python/stacks/1.3.2/hooks/before-ANY/test_before_any.py
@@ -147,4 +147,11 @@ class TestHookBeforeInstall(RMFTestCase):
         content = InlineTemplate(self.getConfig()['configurations']['hadoop-env']['content']),
         owner = 'hdfs',
     )
+    self.assertResourceCalled('XmlConfig', 'core-site.xml',
+        owner = 'hdfs',
+        group = 'hadoop',
+        conf_dir = '/etc/hadoop/conf',
+        configuration_attributes = self.getConfig()['configuration_attributes']['core-site'],
+        configurations = self.getConfig()['configurations']['core-site'],
+    )
     self.assertNoMoreResources()


Mime
View raw message