需要这个?
gpperfmon_install --enable --password gpmon --port 5432
-bash: gpperfmon_install: command not found
直接安装?
unzip gpcc.zip
报错
Failed to connect to database postgres on 127.0.0.1:5432 as gpadmin: libgssapi_krb5.so: cannot open shared object file: No such file or director
Failed to connect to database postgres on 127.0.0.1:5432 as gpadmin???
psql命令能进啊,为什么这里不能连?
libgssapi_krb5.so这是啥?No such file
百度搜libgssapi_krb5.so
缺少东西,需要安装
yum install krb5-libs
安装了没效果!
找到/usr/lib64里的同名文件
名字不一样啊,复制一个改名叫libgssapi_krb5.so试试
终于,开始安装
./gpccinstall-6.2.0
报错
Would you like to continue with gpcc installation? Yy/Nn (Default=N)
y
INSTALLATION IN PROGRESS...
Failed to connect to database as gpmon pq: password authentication failed for user "gpmon"
Failed to connect to database as gpmon pq: password authentication failed for user "gpmon"
Failed to connect to database as gpmon pq: password authentication failed for user "gpmon"
Failed to connect to gpperfmon as gpmon.
gpmon不能连上数据库!密码验证失败
修改pg_hba.conf
给gpmon trust,保证他能连上
local all gpmon 127.0.0.1/28 trust
host all gpmon 127.0.0.1/28 md5
host all gpmon ::1/128 md5
host all gpmon samenet md5
命令行/navicat进入数据库gpperfmon,修改gpmon密码
ALTER ROLE gpmon WITH ENCRYPTED PASSWORD 'gpmon';
重新安装
./gpccinstall-6.2.0 -W
密码gpmon,这次能成功了
Would you like to continue with gpcc installation? Yy/Nn (Default=N)
y
INSTALLATION IN PROGRESS...
********************************************************************************
* *
* INSTALLATION COMPLETED SUCCESSFULLY *
* *
* Source the gpcc_path.sh or add it to your bashrc file to use gpcc command *
* utility. *
* *
* To see the GPCC web UI, you must first start the GPCC webserver. *
* *
* To start the GPCC webserver on the current host, run gpcc start. *
* *
********************************************************************************
To manage Command Center, use the gpcc command-line utility.
Usage:
gpcc [OPTIONS] <command>
Application Options:
-v, --version Show Greenplum Command Center version
--settings Print the current configuration settings
Help Options:
-h, --help Show this help message
Available commands:
help Print list of commands
krbdisable Disables kerberos authentication
krbenable Enables kerberos authentication
start Starts Greenplum Command Center webserver and metrics collection agents
with [-W] option to force password prompt for GPDB user gpmon [optional]
status Print agent status
with [-W] option to force password prompt for GPDB user gpmon [optional]
stop Stops Greenplum Command Center webserver and metrics collection agents
with [-W] option to force password prompt for GPDB user gpmon [optional]
启动
在/tmp/下找到gpcc文件夹
source gpcc_path.sh
gpcc start -W
gpcc stop //停止
http://xxx.xx.x.x.:28080/
看到有error,明天再解决,下班了。agent没有启动
[gpadmin@site92 /]$ gpcc status
2020-08-19 18:05:25 GPCC webserver: running
2020-08-19 18:05:27 GPCC agents: 0/3 agents running
2020-08-19 18:05:27 Agent is stopped on site91
2020-08-19 18:05:27 Agent is stopped on site92
2020-08-19 18:05:27 Agent is stopped on site90
需要安装metrics_collector扩展
error
[gpadmin@site92 gppkg]$ psql gpperfmon -c 'create extension metrics_collector'
ERROR: extension can only be created when shared_preload_libraries contains metrics_collector
设置shared_preload_libraries=metrics_collector
需要重启gp
哦豁,集群启不动了
[gpadmin@site92 extension]$ gpstart -a
20200821:14:34:39:015506 gpstart:site92:gpadmin-[INFO]:-Starting gpstart with args: -a
20200821:14:34:39:015506 gpstart:site92:gpadmin-[INFO]:-Gathering information and validating the environment...
20200821:14:34:39:015506 gpstart:site92:gpadmin-[INFO]:-Greenplum Binary Version: 'postgres (Greenplum Database) 6.9.0 build commit:ef010af28862a0fed172ca96620cc1037aac71a0'
20200821:14:34:40:015506 gpstart:site92:gpadmin-[INFO]:-Greenplum Catalog Version: '301908232'
20200821:14:34:40:015506 gpstart:site92:gpadmin-[INFO]:-Starting Master instance in admin mode
20200821:14:34:40:015506 gpstart:site92:gpadmin-[CRITICAL]:-Failed to start Master instance in admin mode
20200821:14:34:40:015506 gpstart:site92:gpadmin-[CRITICAL]:-Error occurred: non-zero rc: 1
Command was: 'env GPSESSID=0000000000 GPERA=None $GPHOME/bin/pg_ctl -D /home/gpdata/data/master/gpseg-1 -l /home/gpdata/data/master/gpseg-1/pg_log/startup.log -w -t 600 -o " -p 5432 -c gp_role=utility " start'
rc=1, stdout='waiting for server to start.... stopped waiting
', stderr='pg_ctl: could not start server
Examine the log output.
'
[gpadmin@site92 extension]$ gpstart -a
这个错误我原来不知道是咋造成的,启动log里面没有error,只有正常的info.没办法,找不到错误在哪,就重新初始化集群了。重新初始化,安装gpcc,当我修改了pg_hba.conf后,错误重现了,可是我格式没问题啊,而且删了之后,还是报错。又重现初始化,反复几次,我决定不安装这个垃圾GPCC了,垃圾玩意!