incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smoha...@apache.org
Subject git commit: AMBARI-2739. Ganglia monitor is installed for jobtracker even if MAPREDUCE is not selected. (Andrew Onischuk via smohanty)
Date Thu, 25 Jul 2013 22:04:58 GMT
Updated Branches:
  refs/heads/trunk 23ea7ee55 -> 3c2b4e745


AMBARI-2739. Ganglia monitor is installed for jobtracker even if MAPREDUCE is not selected.
(Andrew Onischuk 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/3c2b4e74
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/3c2b4e74
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/3c2b4e74

Branch: refs/heads/trunk
Commit: 3c2b4e74592aaf6b29dfeea2dc5c20cd0d136fb8
Parents: 23ea7ee
Author: Sumit Mohanty <smohanty@hortonworks.com>
Authored: Thu Jul 25 15:04:50 2013 -0700
Committer: Sumit Mohanty <smohanty@hortonworks.com>
Committed: Thu Jul 25 15:04:50 2013 -0700

----------------------------------------------------------------------
 .../puppet/modules/hdp-ganglia/manifests/server.pp | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/3c2b4e74/ambari-agent/src/main/puppet/modules/hdp-ganglia/manifests/server.pp
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/puppet/modules/hdp-ganglia/manifests/server.pp b/ambari-agent/src/main/puppet/modules/hdp-ganglia/manifests/server.pp
index 7585f56..e8e9250 100644
--- a/ambari-agent/src/main/puppet/modules/hdp-ganglia/manifests/server.pp
+++ b/ambari-agent/src/main/puppet/modules/hdp-ganglia/manifests/server.pp
@@ -52,14 +52,25 @@ class hdp-ganglia::server(
     service_state       => $service_state 
   }
 
-  if ($hdp::params::hbase_master_hosts) {
+  if ($hdp::params::is_namenode_master) {
+    hdp-ganglia::config::generate_server { 'HDPNameNode':
+      ganglia_service => 'gmond',
+      role => 'server'
+    }
+  }
+  if ($hdp::params::is_jtnode_master) {
+    hdp-ganglia::config::generate_server { 'HDPJobTracker':
+      ganglia_service => 'gmond',
+      role => 'server'
+    }
+  }
+  if ($hdp::params::is_hbase_master) {
     hdp-ganglia::config::generate_server { 'HDPHBaseMaster':
       ganglia_service => 'gmond',
       role => 'server'
     }
   }
-  
-  hdp-ganglia::config::generate_server { ['HDPJobTracker','HDPNameNode','HDPSlaves' ]:
+  hdp-ganglia::config::generate_server { 'HDPSlaves':
     ganglia_service => 'gmond',
     role => 'server'
   }


Mime
View raw message