1. install the dependent packages related to the prerequisites. installation process monitoring node installation 1. yuminstall-ygangliaganglia-gmetadganglia-webganglia-gmond2. modify/etc/ganglia/gmetad. confdata_source & ldquo; Hadoop & rdquo; {host IP 1. prerequisites
Install related dependency packages
2. install monitoring nodes during installation
1. yum install-y ganglia-gmetad ganglia-web ganglia-gmond
2. modify/etc/ganglia/gmetad. conf
Data_source "Hadoop" {host IP}: 8649
Hadoop indicates the cluster name.
3. modify/etc/ganglia/gmond. conf
Cluster {
Name = "Hadoop"
...
}
Udp_send_channel {// use host as unicast, and mcast_join is Multicast
Host = {host IP}
Port = 8649
Ttl = 1
}
Udp_recv_channel {// If standalone broadcast is used, delete "mcast_join" and "bind"
Port = 8649
}
4. set the boot collection process
Chkconfig-level 235 gmond on
Chkconfig-level 235 gmetad on
Chkconfig-level 235 httpd on
Installed on monitored nodes
1. yum install-y ganglia-gmond
2. copy the gmond. conf file of the monitoring node to each node.
3. set the data collection process to run at startup:
Chkconfig-level 235 gmond on
Test startup
Server:
Servcie gmond on
Service gmetad on
Service httpd on
Client:
Service gmond on
Common errors
1. Forbidden You don't have permission to access/ganglia on this server.
The configuration in the/etc/httpd/conf. d/ganglia. conf file is incorrect,
Just comment out the original content.
Order deny,allow# Deny from all# Allow from 127.0.0.1# Allow from ::1# Allow from .example.com