greenplum-cc-web4.0監控安裝

簡介:

本文是基於greenplum5.7,greenplum-cc-web4.0安裝的。web

1、安裝greenplum監控的數據庫以及建立用戶(在gpadmin用戶下安裝)

一、開啓greenplum數據庫

[gpadmin@master ~]$ gpstart -a

二、安裝gpperfmon數據庫,以及爲gpmon用戶建立密碼,端口是greenplum配置的端口

[gpadmin@master ~]$ gpperfmon_install --enable --password gpmon --port 2345

三、重啓數據庫

[gpadmin@master ~]$ gpstop -M fast -a
[gpadmin@master ~]$ gpstart -a

四、檢查gp監控是否啓動

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

五、檢查gp監控是否監測到greenplum集羣中的每臺主機

[gpadmin@master ~]$ psql -d 'gpperfmon' -c 'select * from system_now;'

 2、正式安裝greenplum-cc-web(在gpadmin用戶下安裝)

一、建立安裝目錄

[gpadmin@master ~]$ gpssh -f /home/gpadmin/conf/hostlist
=> cd /data/greenplum-db  
[master1]
[slave1]
[slave2]
[slave3]
=> mkdir greenplum-cc-web
[master1]
[slave1]
[slave2]
[slave3]
=> exit

二、解壓,安裝

[gpadmin@master ~]$ unzip greenplum-cc-web-4.0.0-LINUX-x86_64.zip
[gpadmin@master ~]$ cd greenplum-cc-web-4.0.0-LINUX-x86_64
[gpadmin@master greenplum-cc-web-4.0.0-LINUX-x86_64]$ ./gpccinstall-4.0.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)
         

Where would you like to install Greenplum Command Center? (Default=/usr/local)
/opt/greenplum/greenplum-cc-web

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 /opt/greenplum/greenplum-cc-web/greenplum-cc-web-4.0.0/gpcc_path.sh
[gpadmin@master ~]$ source .bash_profile

四、修改pg_hba.conf文件鏈接

[gpadmin@master ~]$ vi /data/greenplum-db/gpdata/gpmaster/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

 3、登陸訪問

一、打開網址訪問http://192.168.12.101:28080/login,密碼爲前面設置的密碼

二、經常使用gpcc命令

gpcc stopsql

gpcc start數據庫

相關文章
相關標籤/搜索