hadoop2.8.5集成ganglia

上文讲解了ganglia集群监控工具多cluster搭建采坑指南的使用方法。 本文基于上文的案例, 讲解如何集成hadoop到ganglia监控中。

hadoop2.8.5 集成ganglia

本文上下文基于 NameNode,resourcemanager,mrappmaster,jobhistoryserver都在一台机器上,同时这台机器没有安装datanode和nodemanager。

NameNode

vi hadoop-2.8.5/etc/hadoop/hadoop-metrics2.properties 

*.sink.ganglia.class=org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31
*.sink.ganglia.period=10

namenode.sink.ganglia.servers=ip-1:8649
resourcemanager.sink.ganglia.servers=ip-1:8649
mrappmaster.sink.ganglia.servers=ip-1:8649
jobhistoryserver.sink.ganglia.serve=ip-1:8649

DataNode配置

vi hadoop-2.8.5/etc/hadoop/hadoop-metrics2.properties 

*.sink.ganglia.class=org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31
*.sink.ganglia.period=10
*.sink.ganglia.slope=jvm.metrics.gcCount=zero,jvm.metrics.memHeapUsedM=both 
*.sink.ganglia.dmax=jvm.metrics.threadsBlocked=70,jvm.metrics.memHeapUsedM=40

datanode.sink.ganglia.servers=ip-1:8649
nodemanager.sink.ganglia.servers=ip-1:8649

重启hadoop集群

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
慷慨打赏