You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sm...@apache.org on 2013/08/19 20:43:27 UTC

git commit: AMBARI-2953. Ganglia JobTracker for gmetad fill up /var/log/messages on the gmetad host. (Dmitry Sen via smohanty)

Updated Branches:
  refs/heads/trunk 8a7a639c6 -> ed800deb2


AMBARI-2953. Ganglia JobTracker for gmetad fill up /var/log/messages on the gmetad host. (Dmitry Sen via smohanty)


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

Branch: refs/heads/trunk
Commit: ed800deb2e9dfcaf705aa4b8bdd3bdce7c8fabce
Parents: 8a7a639
Author: Sumit Mohanty <sm...@hortonworks.com>
Authored: Mon Aug 19 11:43:18 2013 -0700
Committer: Sumit Mohanty <sm...@hortonworks.com>
Committed: Mon Aug 19 11:43:18 2013 -0700

----------------------------------------------------------------------
 .../templates/gangliaClusters.conf.erb            | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/ed800deb/ambari-agent/src/main/puppet/modules/hdp-ganglia/templates/gangliaClusters.conf.erb
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/puppet/modules/hdp-ganglia/templates/gangliaClusters.conf.erb b/ambari-agent/src/main/puppet/modules/hdp-ganglia/templates/gangliaClusters.conf.erb
index 2d159cb..7224c01 100644
--- a/ambari-agent/src/main/puppet/modules/hdp-ganglia/templates/gangliaClusters.conf.erb
+++ b/ambari-agent/src/main/puppet/modules/hdp-ganglia/templates/gangliaClusters.conf.erb
@@ -19,9 +19,25 @@
 #########################################################
 ### ClusterName           GmondMasterHost   GmondPort ###
 #########################################################
-    HDPSlaves       		<%=scope.function_hdp_host("ganglia_server_host")%>  8660
+<% if (scope.function_hdp_default('slave_hosts') != '')%>
+    HDPSlaves       	<%=scope.function_hdp_host("ganglia_server_host")%>  8660
+<%end-%>
+<% if (scope.function_hdp_default('namenode_host') != '')%>
     HDPNameNode         <%=scope.function_hdp_host("ganglia_server_host")%>  8661
+<%end-%>
+<% if (scope.function_hdp_get_major_stack_version([scope.function_hdp_template_var("stack_version")]) < 2)%>
+    <% if (scope.function_hdp_default('jtnode_host') != '')%>
     HDPJobTracker     	<%=scope.function_hdp_host("ganglia_server_host")%>  8662
+    <%end-%>
+<%end-%>
+<% if (scope.function_hdp_default('hbase_master_hosts') != '')%>
     HDPHBaseMaster      <%=scope.function_hdp_host("ganglia_server_host")%>  8663
+<%end-%>
+<% if (scope.function_hdp_get_major_stack_version([scope.function_hdp_template_var("stack_version")]) >= 2)%>
+    <% if (scope.function_hdp_default('rm_host') != '')%>
     HDPResourceManager  <%=scope.function_hdp_host("ganglia_server_host")%>  8664
+    <%end-%>
+    <% if (scope.function_hdp_default('hs_host') != '')%>
     HDPHistoryServer    <%=scope.function_hdp_host("ganglia_server_host")%>  8666
+    <%end-%>
+<%end-%>