Repository: ambari
Updated Branches:
  refs/heads/trunk 017ae9f0e -> 891f668cc


AMBARI-10707. AMS does not work with NN HA in AMS distrbuted mode. (swagle)


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

Branch: refs/heads/trunk
Commit: 891f668cc987165479875fe8db11d0364e873476
Parents: 017ae9f
Author: Siddharth Wagle <swa...@hortonworks.com>
Authored: Tue May 12 12:55:20 2015 -0700
Committer: Siddharth Wagle <swa...@hortonworks.com>
Committed: Tue May 12 12:55:20 2015 -0700

----------------------------------------------------------------------
 .../AMBARI_METRICS/0.1.0/package/scripts/ams.py | 38 ++++++++++++++++++++
 1 file changed, 38 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/891f668c/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
 
b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
index c7de4f3..507336b 100644
--- 
a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
+++ 
b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
@@ -89,6 +89,15 @@ def ams(name=None):
             mode=0644
       )
 
+      XmlConfig("hdfs-site.xml",
+            conf_dir=params.hbase_conf_dir,
+            configurations=params.config['configurations']['hdfs-site'],
+            
configuration_attributes=params.config['configuration_attributes']['hdfs-site'],
+            owner=params.ams_user,
+            group=params.user_group,
+            mode=0644
+      )
+
       XmlConfig("core-site.xml",
                 conf_dir=params.ams_collector_conf_dir,
                 configurations=params.config['configurations']['core-site'],
@@ -97,6 +106,16 @@ def ams(name=None):
                 group=params.user_group,
                 mode=0644
       )
+
+      XmlConfig("core-site.xml",
+                conf_dir=params.hbase_conf_dir,
+                configurations=params.config['configurations']['core-site'],
+                
configuration_attributes=params.config['configuration_attributes']['core-site'],
+                owner=params.ams_user,
+                group=params.user_group,
+                mode=0644
+      )
+
     else:
       ServiceConfig(params.ams_embedded_hbase_win_service_name,
                     action="change_user",
@@ -249,6 +268,15 @@ def ams(name=None):
             mode=0644
       )
 
+      XmlConfig("hdfs-site.xml",
+            conf_dir=params.hbase_conf_dir,
+            configurations=params.config['configurations']['hdfs-site'],
+            
configuration_attributes=params.config['configuration_attributes']['hdfs-site'],
+            owner=params.ams_user,
+            group=params.user_group,
+            mode=0644
+      )
+
       XmlConfig("core-site.xml",
                 conf_dir=params.ams_collector_conf_dir,
                 configurations=params.config['configurations']['core-site'],
@@ -257,6 +285,16 @@ def ams(name=None):
                 group=params.user_group,
                 mode=0644
       )
+
+      XmlConfig("core-site.xml",
+                conf_dir=params.hbase_conf_dir,
+                configurations=params.config['configurations']['core-site'],
+                
configuration_attributes=params.config['configuration_attributes']['core-site'],
+                owner=params.ams_user,
+                group=params.user_group,
+                mode=0644
+      )
+
     pass
 
   elif name == 'monitor':

Reply via email to