hadoop集群数据节点gmond安装
jopen
9年前
1、配置yum源
参考资料:http://yhz.me/blog/Install-Ganglia-On-CentOS.html
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum makecache
2、搜索ganglia-gmond
参考资料:http://blog.csdn.net/cywosp/article/details/39701141
[root@datanode2 ~]# yum search ganglia-gmond Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * epel: ftp.cuhk.edu.hk * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com ================================ N/S Matched: ganglia-gmond ================================ ganglia-gmond.x86_64 : Ganglia Monitoring daemon ganglia-gmond-python.x86_64 : Ganglia Monitor daemon python DSO and metric modules Name and summary matches only, use "search all" for everything.
3、安装ganglia-gmond
[root@datanode2 ~]# yum install ganglia-gmond.x86_64
4、修改/etc/ganglia/gmond.conf配置文件
参考资料:http://blog.csdn.net/cywosp/article/details/39701141
1)、修改cluster中name值为集群名称“hadoop”
此处值和gmetad配置文件中
data_source "hadoop" localhost ”
配置项相互对应。
2)、修改udp_send_channel相关配置项值
注释掉“mcast_join”相关配置项值,添加“host”相关配置项值:
host = master(因为gmetad为master)
5、启动gmond
[root@datanode2 ~]# service gmond start Starting GANGLIA gmond: [ OK ] [root@datanode2 ~]# service gmond status gmond (pid 4192) is running...
刷新可发现,配置成功。
7、同理配置datanode1
1)、1、2、3步骤完全相同。
2)、从master节点scp拷贝/etc/ganglia/gmond.conf文件到datanode1节点
3)、启动gmond服务
service gmond start
4)、查看gmond服务启动状态
service gmond status
来自:http://my.oschina.net/HIJAY/blog/498791