分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 运营维护

greenplum-cc-web4.2 监控安装

发布时间:2023-09-06 02:09责任编辑:彭小芳关键词:暂无标签

安装Performance Monitor数据收集Agent

gpadmin用户执行如下步骤【仅在master节点】。

使用gpperfmon_install命令,

Greenplum安装完成后已经包含该命令。安装后会建立名为gpperfmon的数据库,默认使用gpmon用户。命令行中系统用户gpmon的密码。

[gpadmin@mdw ~]$ gpperfmon_install --enable --password gpmon --port 5432

重启GP数据库

[gpadmin@mdw ~]$ gpstop -r

确认监控采集进程是否已经启动。

[gpadmin@mdw ~]$ ps -ef |grep gpmmon

确认Performance Monitor数据库写入数据是否正常,检查是否有记录写入。

psql -d gpperfmon -c ‘select * from system_now;‘

拷贝Master主机拷贝配置文件到Standby Master的相应目录【本例未设置smdw;则无需操作】

gpscp -h smdw $MASTER_DATA_DIRECTORY/pg_hba.conf =:$MASTER_DATA_DIRECTORY/

gpscp -h smdw ~/.pgpass =:~/

安装Performance Monitor控制台

下载对应的安装包

查看GreenPlum版本

[gpadmin@mdw ~]$ gpstate -s | awk ‘/Greenplum Version/{print $8}‘|awk ‘NR==1‘

安装包下载地址

运行安装包

安装包解压:

[root@mdw gpdb]# unzip greenplum-cc-web-4.2.0-LINUX-x86_64.zip 

运行安装文件:

[root@mdw gpdb]# ./greenplum-cc-web-4.2.0-LINUX-x86_64/gpccinstall-4.2.0

#一直空格

I HAVE READ AND AGREE TO THE TERMS OF THE ABOVE PIVOTAL GREENPLUM DATABASE
END USER LICENSE AGREEMENT.
Do you agree to the Pivotal Greenplum Command Center End User License Agreement? Yy/Nn (Default=Y)
y
 
Where would you like to install Greenplum Command Center? (Default=/usr/local)
/data1/gpdb/gpcc/
Path not exist, create it? Yy/Nn (Default=Y)
y
 
What would you like to name this installation of Greenplum Command Center? (Default=gpcc)
 
What port would you like gpcc webserver to use? (Default=28080)
 
Would you like to enable kerberos? Yy/Nn (Default=N)
 
 
Would you like enable SSL? Yy/Nn (Default=N)
 
Installation in progress...
 
Successfully installed Greenplum Command Center.
 
We recommend ssh to standby master before starting GPCC webserver
 
To start the GPCC webserver on the current host, run gpcc start

修改环境变量(所有机器)

[gpadmin@master ~]$ vi .bash_profile
#添加
source /data1/gpdb/gpcc/greenplum-cc-web-4.2.0/gpcc_path.sh [gpadmin@master ~]$ source .bash_profile

修改pg_hba.conf文件连接

[gpadmin@master ~]$ vi /data1/gpdb/data/master/gpseg-1/pg_hba.conf 
#在最后一行添加这句
host     all         gpmon         (本机的ip)/24     md5
[gpadmin@master ~]$ gpstop -M fast -a  
[gpadmin@master ~]$ gpstart -a
[gpadmin@master ~]$ gpcc start

打开网址访问http://192.168.12.101:28080/login,密码为前面设置的密码

greenplum-cc-web4.2 监控安装

原文地址:https://www.cnblogs.com/small-potato/p/9449107.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved