安装ganglia及监控haoop
来源:互联网 发布:网络运维书籍推荐 编辑:程序博客网 时间:2024/04/30 04:34
ganglia的web功能需要php的支持
192.168.78.129 master
192.168.78.130 slave1
在下master安装
安装httpd和php
# yum -y install httpd php php-ZendFramework php-gd rrdtool php-xml
安装ganglia
# rpm -ivh ganglia-3.7.2-2.el7.x86_64.rpm ganglia-gmetad-3.7.2-2.el7.x86_64.rpm ganglia-gmond-3.7.2-2.el7.x86_64.rpm ganglia-web-3.7.1-2.el7.x86_64.rpm libconfuse-2.7-7.el7.x86_64.rpm libevent-2.0.21-4.el7.x86_64.rpm libmemcached-1.0.16-5.el7.x86_64.rpm
配置httpd
# cat /etc/httpd/conf.d/ganglia.confAlias /ganglia /usr/share/ganglia<Location /ganglia> Require all granted</Location>
配置gmentad
# cat /etc/ganglia/gmetad.conf data_source "my cluster" 192.168.78.129
配置gmond
# cat /etc/ganglia/gmond.confudp_send_channel { #bind_hostname = yes # Highly recommended, soon to be default. # This option tells gmond to use a source address # that resolves to the machine's hostname. Without # this, the metrics may appear to come from any # interface and the DNS names associated with # those IPs will be used to create the RRDs. mcast_join = 192.168.78.129 port = 8649 ttl = 1}/* You can specify as many udp_recv_channels as you like as well. */udp_recv_channel {# mcast_join = 239.2.11.71 port = 8649# bind = 239.2.11.71 retry_bind = true # Size of the UDP buffer. If you are handling lots of metrics you really # should bump it up to e.g. 10MB or even higher. # buffer = 10485760}
启动服务
# service httpd start# service gmetad start# service gmond start
在slave1下安装
安装依赖
# yum -y install apr
安装gmond
# rpm -ivh ganglia-3.7.2-2.el7.x86_64.rpm ganglia-gmond-3.7.2-2.el7.x86_64.rpm libconfuse-2.7-7.el7.x86_64.rpm
配置gmond
# cat /etc/ganglia/gmond.confudp_send_channel { #bind_hostname = yes # Highly recommended, soon to be default. # This option tells gmond to use a source address # that resolves to the machine's hostname. Without # this, the metrics may appear to come from any # interface and the DNS names associated with # those IPs will be used to create the RRDs. mcast_join = 192.168.78.129 port = 8649 ttl = 1}/* You can specify as many udp_recv_channels as you like as well. */udp_recv_channel {# mcast_join = 239.2.11.71 port = 8649# bind = 239.2.11.71 retry_bind = true # Size of the UDP buffer. If you are handling lots of metrics you really # should bump it up to e.g. 10MB or even higher. # buffer = 10485760}
启动服务
# service gmond start
查看:
192.168.78.129/ganglia
监控hadoop集群
监控namenode和datanode
$ cat hadoop-2.x/etc/hadoop/hadoop-metrics2.properties*.sink.ganglia.class=org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31*.sink.ganglia.period=10*.sink.ganglia.supportsparse=truenamenode.sink.ganglia.servers=192.168.78.129:8649datanode.sink.ganglia.servers=192.168.78.129:8649
重启namenode和datanode及gmond
$ cd hadoop-2.x/$ sbin/hadoop-daemon.sh stop namenode $ sbin/hadoop-daemon.sh stop datanode$ sbin/hadoop-daemon.sh start namenode $ sbin/hadoop-daemon.sh start datanode # service gmond restart
查看界面
0 0
- 安装ganglia及监控haoop
- Unbuntu下Ganglia监控安装及部署
- ganglia监控的安装
- ganglia监控的安装
- Ganglia 监控安装介绍
- 安装Ganglia监控hadoop
- centos 5.6下Ganglia监控安装及部署
- Ganglia监控Hadoop及Hbase集群性能(安装配置)
- wang-----Ganglia监控Hadoop及Hbase集群性能(安装配置)
- Ganglia监控Hadoop及Hbase集群性能(安装配置)
- Ganglia监控Hadoop及Hbase集群性能(安装配置)
- Ganglia监控Apache Haoop集群部署文档&参数表一览(最全面)
- GANGLIA监控原理及常见问题
- centos 安装ganglia监控工具
- Ubuntu12.04安装ganglia监控
- 云监控 Ganglia 安装配置
- 安装ganglia监控hadoop集群
- ubuntu安装Ganglia监控Hadoop及Hbase集群性能(安装配置)
- jsp|java跨域取出网页指定元素htmlParer使用小例子
- 12-JSTL简介
- TextView文本显示图片和文字,竖直滚动显示
- android 仿去哪儿首页效果
- Zxing二维码开发随笔
- 安装ganglia及监控haoop
- xdebug配置
- 设计模式总结之Proxy Pattern(代理模式)
- Android手机——读取手机电话+短信+网页+图片+音乐+视频+APK+通知栏消息+换头像
- EventBus使用及简析
- iOS开发-警告收录及科学快速的消除方法
- TOMCAT-SSL双向认证-配置实例
- 隐式Intent跳转
- String, StringBuffer, StringBuilder