http://blog.csdn.net/xuxiuning/article/details/52169170
到 https://centos.pkgs.org/ 下载安装需要的rpm包
// ganglia通用依赖包
expat-2.0.1-13.el6_8.x86_64.rpm
libconfuse-2.7-4.el6.x86_64.rpm
apr-1.3.9-5.el6_2.x86_64.rpm
pcre-7.8-7.el6.x86_64.rpm
// ganglia软件包
ganglia-3.7.2-2.el6.x86_64.rpm
ganglia-gmond-3.7.2-2.el6.x86_64.rpm
// rrd及依赖包
rrdtool-1.3.8-10.el6.x86_64.rpm
ganglia-gmetad-3.7.2-2.el6.x86_64.rpm
// php 安装
php-5.3.3-49.el6.x86_64.rpm
php-bcmath-5.3.3-49.el6.x86_64.rpm
php-cli-5.3.3-49.el6.x86_64.rpm
php-common-5.3.3-49.el6.x86_64.rpm
php-gd-5.3.3-49.el6.x86_64.rpm
php-process-5.3.3-49.el6.x86_64.rpm
php-xml-5.3.3-49.el6.x86_64.rpm
php-ZendFramework-1.12.20-1.el6.noarch.rpm
ganglia-web-3.7.1-2.el6.x86_64.rpm
确认依赖包都已经安装
rpm -ivh ganglia-3.7.2-2.el6.x86_64.rpm ganglia-gmond-3.7.2-2.el6.x86_64.rpm
yum install dejavu-sans-mono-fonts dejavu-lgc-sans-mono-fonts
rpm -ivh rrdtool-1.3.8-10.el6.x86_64.rpm ganglia-gmetad-3.7.2-2.el6.x86_64.rpm
// web 安装
rpm -ivh php-*
rpm -ivh ganglia-web-3.7.1-2.el6.x86_64.rpm
==================================================================================
旧版ganglia清理
pssh -h node_30 -o out -e err -A -t 10 ‘/sbin/pidof gmond |sudo xargs kill -s 9’
pssh -h node_30 -o out -e err -A -t 10 ‘sudo rm -rf /usr/sbin/gmond /etc/rc.d/init.d/gmond /usr/local/ganglia /etc/ganglia /appcom/home/hadoop/ganglia /appcom/home/hadoop/gmond /appcom/home/hadoop/init.d/gmond ‘
安装新版本
pssh -h node_30 -o out -e err -A -t 10 ‘sudo yum install -y expat libconfuse apr pcre’
– pssh -h node_30 -o out -e err -A -t 10 ‘mkdir -p /appcom/home/hadoop/ganglia’
pssh -h node_30 -o out -e err -A -t 10 ‘sudo yum install -y ganglia-gmond’
pssh -h node_30 -o out -e err -A -t 10 sudo chmod 777 /etc/ganglia/gmond.conf
pscp -h node_30 -o out -e err -A -t 10 /etc/ganglia/gmond.conf /etc/ganglia/gmond.conf
pssh -h node_30 -o out -e err -A -t 10 sudo service gmond restart
24 上安装
sudo yum install rrdtool
// web 安装
sudo yum install httpd
sudo rpm -ivh php-*
sudo yum install -y rrdtool ganglia-web ganglia-gmetad
sudo service gmetad restart
sudo service hadoop-hdfs-datanode restart
sudo service hadoop-yarn-nodemanager restart
=============================================================================
高级配置
* hadoop metrics数据过滤