GPCC 安裝

筆者: 歐立威 Hank

Greenplum Command Center (GPCC) 安裝
預先準備:
1.    一個能夠正常運作的GPDB環境
2.    Pivotal 官網下載 GPCC 安裝包,版本為3.0.1 for GPDB 4.3.11,網址: https://network.pivotal.io/products/pivotal-gpdb
3.    了解GPDB的基本操作

[建立相關帳號、資料庫與設定權限]
$ su - gpadmin
$ source /usr/local/greenplum-db/greenplum_path.sh
$ gpperfmon_install --enable --password gpgpveryop --port 5432
$ vi /data/master/gpseg-1/pg_hba.conf
(check following three lines is existing)
local    gpperfmon   gpmon         md5
host     gpperfmon   gpmon         127.0.0.1/28    md5
host     gpperfmon   gpmon         ::1/128         md5

[重啟GPDB與驗證]
$ gpstop -r
$ ps -ef | grep gpmmon
$ psql gpperfmon -c 'SELECT * FROM system_now;'
$ psql gpperfmon

[若有Standby Master,請複製相關檔案過去]
$ scp /data/master/gpseg-1/pg_hba.conf smdw:/data/master/gpseg-1/
$ scp ~/.pgpass smdw:~

[安裝GPCC軟體]
$ su -
$ unzip greenplum-cc-web-3.0.1-LINUX-x86_64.zip
$ ./greenplum-cc-web-3.0.1-LINUX.bin
$ source /usr/local/greenplum-db/greenplum_path.sh
$ source /usr/local/greenplum-cc-web/gpcc_path.sh
$ chown -R gpadmin:gpadmin /usr/local/greenplum-cc-web-3.0.1
$ vi hostfilename
(set all host names in gpdb cluster)

$ gpccinstall -f hostfilename
$ su - gpadmin
$ vi ~/.bashrc
(append the line)
source /usr/local/greenplum-cc-web/gpcc_path.sh

$ gpcmdr --setup
$ gpcmdr --start


到這邊已安裝完成,可用瀏覽器連線查看,連接阜為28080,謝謝~


Comments

Popular posts from this blog

MPP Database – Pivotal Greenplum

GPDB DataDomain 備份