Greenplumccweb

2023年 8月 12日 54.3k 0

https://network.pivotal.io/products/gpdb-command-center

http://gpcc.docs.pivotal.io/610/welcome.html

https://network.pivotal.io/products/gpdb-command-center#/releases/895715

配置访问及安装greenplum command center1.greenplumn 远程配置1.1配置文件为位于 MASTER 节点的数据目录之下的 pg_hba.conf 文件修改位置vim /opt/greenplum/data/maste/gpseg-1/pg_hba.conf

对应文件:

vi $MASTER_DATA_DIRECTORY/pg_hba.conf

该文件的记录有5个字段,代表的意义为:

1.1.1连接方式

分别是:“local”使用本地unix套接字,“host”使用TCP/IP连接(包括SSL和非SSL),“hostssl”只能使用SSL TCP/IP连接,“hostnossl”不能使用SSL TCP/IP连接。

1.1.2数据库名

可通过使用 all 关键字表示所有的数据库

1.1.3、用户名

多个用户通过逗号隔开

1.1.4、被允许连接的服务器地址

1.1.5、认证方式

ident,md5,password(明文密码),trust(无需密码),reject(拒绝认证)

1.1.6重启生效

gpstop -u

新版本的GPCC支持6.7.1,我原来下载的可能不支持

TIM图片20200520104152.png

临时修改/usr/loca/权限给gpadmin

chown gpadmin:gpadmin /usr/local

解压文件

[root@websvr4 soft]# unzip greenplum-cc-web-6.1.0-gp6-rhel6-x86_64.zip Archive: greenplum-cc-web-6.1.0-gp6-rhel6-x86_64.zip creating: greenplum-cc-web-6.1.0-gp6-rhel6-x86_64/ inflating: greenplum-cc-web-6.1.0-gp6-rhel6-x86_64/gpccinstall-6.1.0 chown gpadmin:gpadmin gpccinstall-6.1.0

vim /opt/greenplum/data/master/gpseg-1/pg_hba.conflocal gpperfmon gpmon md5host all gpmon 127.0.0.1/28 md5host all gpmon ::1/128 md5host all gpmon samenet md5

正常提示

INSTALLATION IN PROGRESS...********************************************************************************* Please check your .pgpass file for the default password. ** We recommend changing the default password for the gpmon user unless you ** plan to connect through LDAP or kerberos. *********************************************************************************CREATING SUPERUSER 'gpmon'...CREATING COMMAND CENTER DATABASE 'gpperfmon'...

********************************************************************************* ** 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]

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]

gpcc启动命令与6.0不一样,这个需要输入密码gpcc start -Wgpcc stop -W[gpadmin@ares greenplum-cc-web-6.1.0-gp6-rhel7-x86_64]$ gpcc status2020-04-10 17:22:06 GPCC webserver: running2020-04-10 17:22:06 GPCC agents: 5/5 agents running密码设置登陆密码及修改方法:[gpadmin@mdw greenplum-cc-web-6.0.0-rhel6_x86_64]$ cat ~/.pgpass*:5432:gpperfmon:gpmon:changeme$ chown gpadmin:gpadmin ~/.pgpass$ chmod 600 ~/.pgpass

gpperfmon=# ALTER ROLE gpmon WITH ENCRYPTED PASSWORD '1234@Abcd';

2、修改隐藏文件 .pgpass [gpadmin@mdw ~]$ vi .pgpass*:5432:gpperfmon:gpmon:1234@Abcd3、重启GPCC实例[gpadmin@mdw ~]$ gpstop -u查询用户名密码SELECT rolname,rolpassword FROM pg_authid;

web访问

http://172.16.2.227:28080启用工作负载管理官方文档

https://gpdb.docs.pivotal.io/6-6/admin_guide/workload_mgmt_resgroups.html#topic8gpconfig -s gp_resource_managerValues on all segments are consistentGUC : gp_resource_managerMaster value: queueSegment value: queue

gpconfig -c gp_resource_manager -v "group"20200410:17:59:46:063947 gpconfig:ares:gpadmin-[INFO]:-completed successfully with parameters '-c gp_resource_manager -v group'

重启gpdb 和gpcc

一: 关于gpcc的介绍Pivotal Greenplum Command Center6.3 (gpcc 监控平台)

安装GP监控的数据库和用户等信息

执行Greenplum DB数据库的gpperfmon_install工具,完成GP监控软件安装的前期准备工作

gpperfmon_install工具的功能大致是:

创建greenplum监控用数据库(gpperfmon)

创建greenplum监控用数据库角色(gpmon)

配置greenplum数据库接受来自perfmon监控的链接文件(pg_hba.conf和.pgpass)

设置postgresql.conf文件,增加启用监控的参数。(这些参数默认会添加在文件的末尾)

下载地址: https://network.pivotal.io/products/pivotal-gpdb/

greenplum-cc-web-6.5.0-gp6-rhel7-x86_64.zip

二:gpcc的部署:su - gpadmin

gpperfmon_install --enable --password gpmon --port 5432

主要修改了如下东西:

配置文件/greenplum/gpdata/master/gpseg-1/postgresql.conf访问权限/greenplum/gpdata/master/gpseg-1/pg_hba.conf

/greenplum/gpdata/master/gpseg-1/gpperfmon/conf/生成一个配置文件gpperfmon.conf

/greenplum/gpdata/master/gpseg-1/gpperfmon/logs 日志路径

当master 挂掉之后启用 standby 的时候涉及同步问题cd /greenplum/gpdata/master/gpseg-1scp pg_hba.conf gpadmin@192.168.100.12:/greenplum/gpdata/master/gpseg-1/scp ~/.pgpass gpadmin@192.168.100.12:~/

下面安装 greenplum-cc-web 配置 使用gpadmin用户安装

unzip greenplum-cc-web-6.5.0-gp6-rhel7-x86_64.zip

cd greenplum-cc-web-6.5.0-gp6-rhel7-x86_64./gpccinstall-6.5.0

将 gpcc_path.sh 写入 环境变量当中vim .bash_profile

----source /greenplum/greenplum-cc-6.5.0/gpcc_path.sh----

vim .bashrc----source /greenplum/greenplum-cc-6.5.0/gpcc_path.sh----

重新加载环境变量 (所有机器)source .bashrc source .bash_profile cd /greenplum/gpdata/master/gpseg-1/vim pg-hba.conf增加一行授权host gpperfmon gpmon 192.168.100.11/32 md5

启动gpcc

gpcc start

本文来源:https://blog.csdn.net/eagle89/article/details/120178515

相关文章

Oracle如何使用授予和撤销权限的语法和示例
Awesome Project: 探索 MatrixOrigin 云原生分布式数据库
下载丨66页PDF,云和恩墨技术通讯(2024年7月刊)
社区版oceanbase安装
Oracle 导出CSV工具-sqluldr2
ETL数据集成丨快速将MySQL数据迁移至Doris数据库

发布评论