【GP5安裝配置】 Greenplum5.23 安裝gpcc4.8筆記

目錄

1 安裝 gpperfmon

1.1 檢測gpperfmon 是否正常啓動

​2 安裝gpcc-web

2.1 解壓安裝

2.2 添加環境變量

2.3 配置pg_hba.conf,啓動gpcc服務

2.4 登陸gpcc-web


參考文檔:http://gpcc.docs.pivotal.io/600/topics/install.html

安裝分爲三步
1.下載gpcc安裝包 
gpcc與gp 版本對應:http://gpcc.docs.pivotal.io/supported-platforms/gpcc.html
下載地址:https://network.pivotal.io/products/pivotal-gpdb#/releases/494217/file_groups/2234
2. 安裝gpperfmon(gpcc4.8 以後可以不安裝 gpperfmon)
3. 安裝gpcc-web

1 安裝 gpperfmon


[gpadmin@mdw ~]$ gpperfmon_install --enable --password gpmon --port 5432
20191211:17:31:44:015206 gpperfmon_install:mdw:gpadmin-[INFO]:-createdb gpperfmon >& /dev/null
20191211:17:31:46:015206 gpperfmon_install:mdw:gpadmin-[INFO]:-PGPORT=5432 psql -f /opt/greenplum-db/./lib/gpperfmon/gpperfmon.sql gpperfmon >& /dev/null
20191211:17:31:47:015206 gpperfmon_install:mdw:gpadmin-[INFO]:-PGPORT=5432 psql template1 -c "DROP ROLE IF EXISTS gpmon"  >& /dev/null
20191211:17:31:47:015206 gpperfmon_install:mdw:gpadmin-[INFO]:-PGPORT=5432 psql template1 -c "CREATE ROLE gpmon WITH SUPERUSER CREATEDB LOGIN ENCRYPTED PASSWORD '********'"  >& /dev/null
20191211:17:31:47:015206 gpperfmon_install:mdw:gpadmin-[INFO]:-echo "local    gpperfmon         gpmon         md5" >> /opt/greenplum523/data/master/gpseg-1/pg_hba.conf
20191211:17:31:47:015206 gpperfmon_install:mdw:gpadmin-[INFO]:-echo "host     all         gpmon         127.0.0.1/28    md5" >> /opt/greenplum523/data/master/gpseg-1/pg_hba.conf
20191211:17:31:47:015206 gpperfmon_install:mdw:gpadmin-[INFO]:-echo "host     all         gpmon         ::1/128    md5" >> /opt/greenplum523/data/master/gpseg-1/pg_hba.conf
20191211:17:31:47:015206 gpperfmon_install:mdw:gpadmin-[INFO]:-touch /home/gpadmin/.pgpass >& /dev/null
20191211:17:31:47:015206 gpperfmon_install:mdw:gpadmin-[INFO]:-mv -f /home/gpadmin/.pgpass /home/gpadmin/.pgpass.1576056704 >& /dev/null
20191211:17:31:47:015206 gpperfmon_install:mdw:gpadmin-[INFO]:-echo "*:5432:gpperfmon:gpmon:******** >> /home/gpadmin/.pgpass
20191211:17:31:47:015206 gpperfmon_install:mdw:gpadmin-[INFO]:-cat /home/gpadmin/.pgpass.1576056704 >> /home/gpadmin/.pgpass
20191211:17:31:47:015206 gpperfmon_install:mdw:gpadmin-[INFO]:-chmod 0600 /home/gpadmin/.pgpass >& /dev/null
20191211:17:31:47:015206 gpperfmon_install:mdw:gpadmin-[INFO]:-PGPORT=5432 gpconfig -c gp_enable_gpperfmon -v on >& /dev/null
20191211:17:31:48:015206 gpperfmon_install:mdw:gpadmin-[INFO]:-PGPORT=5432 gpconfig -c gpperfmon_port -v 8888 >& /dev/null
20191211:17:31:49:015206 gpperfmon_install:mdw:gpadmin-[INFO]:-PGPORT=5432 gpconfig -c gp_external_enable_exec -v on --masteronly >& /dev/null
20191211:17:31:49:015206 gpperfmon_install:mdw:gpadmin-[INFO]:-PGPORT=5432 gpconfig -c gpperfmon_log_alert_level -v warning >& /dev/null
20191211:17:31:50:015206 gpperfmon_install:mdw:gpadmin-[INFO]:-gpperfmon will be enabled after a full restart of GPDB

重啓集羣

gpstop -r

1.1 檢測gpperfmon 是否正常啓動

[gpadmin@mdw ~]$ ps -ef | grep gpmmon |grep -v grep
gpadmin  15906 15897  0 17:38 ?        00:00:00 /opt/greenplum523/bin/gpmmon -D /opt/greenplum523/data/master/gpseg-1/gpperfmon/conf/gpperfmon.conf -p 5432
[gpadmin@mdw ~]$ psql gpperfmon -c 'SELECT* FROM system_now;'


2 安裝gpcc-web

1. 下載安裝文件
2. 解壓
3. 執行安裝命令


2.1 解壓安裝


[gpadmin@mdw gp_install_package]$ unzip greenplum-cc-web-4.8.0-LINUX-x86_64.zip
Archive:  greenplum-cc-web-4.8.0-LINUX-x86_64.zip
   creating: greenplum-cc-web-4.8.0-LINUX-x86_64/
  inflating: greenplum-cc-web-4.8.0-LINUX-x86_64/gpccinstall-4.8.0
[gpadmin@mdw gp_install_package]$ cd greenplum-cc-web-4.8.0-LINUX-x86_64
[gpadmin@mdw greenplum-cc-web-4.8.0-LINUX-x86_64]$ ls
gpccinstall-4.8.0
[gpadmin@mdw greenplum-cc-web-4.8.0-LINUX-x86_64]$ ./gpccinstall-4.8.0
[license 說明省略]
...
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)
/opt/greenplum523
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 enable SSL? Yy/Nn (Default=N)

Please choose a display language (Default=English)
1.  English
2.  Chinese
3.  Korean
4.  Russian
5.  Japanese
2
*******************************************************************************
*                  WARNING: INCOMPATIBLE DATABASE VERSION                     *
*                                                                             *
* GPCC version [4.8.0] may not be fully compatible with currently installed   *
* Greenplum Database version [5.23].                                          *
*                                                                             *
* This may result in a lack of data on the Query Monitor and other GPCC pages.*
*                                                                             *
* Please reference the version compatibility in the GPCC documentation        *
* (http://gpcc.docs.pivotal.io/supported-platforms/gpcc.html)                 *
*                                                                             *
*******************************************************************************

INSTALLATION IN PROGRESS...

2.2 添加環境變量

echo "source /opt/greenplum523/greenplum-cc-web-4.8.0/gpcc_path.sh" >> ~/.bashrc
source  ~/.bashrc

2.3 配置pg_hba.conf,啓動gpcc服務


[gpadmin@mdw greenplum-cc-web-4.8.0]$ gpcc start
2019-12-11 18:02:26 Starting the gpcc agents and webserver...
2019-12-11 18:02:26 pq: no pg_hba.conf entry for host "172.28.25.204", user "gpmon", database "gpperfmon", SSL off
[gpadmin@mdw greenplum-cc-web-4.8.0]$ vi /opt/greenplum523/data/master/gpseg-1/pg_hba.conf
[gpadmin@mdw greenplum-cc-web-4.8.0]$ gpstop -u
20191211:18:05:30:017735 gpstop:mdw:gpadmin-[INFO]:-Starting gpstop with args: -u
20191211:18:05:30:017735 gpstop:mdw:gpadmin-[INFO]:-Gathering information and validating the environment...
20191211:18:05:30:017735 gpstop:mdw:gpadmin-[INFO]:-Obtaining Greenplum Master catalog information
20191211:18:05:30:017735 gpstop:mdw:gpadmin-[INFO]:-Obtaining Segment details from master...
20191211:18:05:30:017735 gpstop:mdw:gpadmin-[INFO]:-Greenplum Version: 'postgres (Greenplum Database) 5.23.0 build commit:5eaaa5800e9f492683c3ce313e54d3db5afbce79'
20191211:18:05:30:017735 gpstop:mdw:gpadmin-[INFO]:-Signalling all postmaster processes to reload
.
[gpadmin@mdw greenplum-cc-web-4.8.0]$ gpcc start
2019-12-11 18:05:34 Starting the gpcc agents and webserver...
2019-12-11 18:05:36 Agent successfully started on 3/3 hosts
2019-12-11 18:05:36 View Greenplum Command Center at http://mdw:28080

2.4 登陸gpcc-web

地址: http://mdw:28080 
用戶名密碼:gpmon/gpmon

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章