安裝Greenplum-perfmon-web監控軟件遇到的問題及解決


環境

Product Version
Pivotal Greenplum (GPDB) 4.3.x
Pivotal Greenplum Command Center (GPCC)  
Others  

 

預備 使用自帶的工具命令

gpperfmon_install
[--enable --password <gpmon_password> --port <gpdb_port>]
[--pgpass <path_to_file>]
[--verbose]

 

功能大致是:
    創建greenplum監控用數據庫(gpperfmon)
    創建greenplum監控用數據庫角色(gpmon)
    配置greenplum數據庫接受來自perfmon監控的鏈接文件(pg_hba.conf和.pgpass)
    設置postgresql.conf文件,增加啟用監控的參數。(這些參數默認會添加在文件的末尾)
    設置pg_hba.conf文件,增加如下信息:  
    local    gpperfmon         gpmon         md5
    host     all               gpmon         127.0.0.1/28    md5

 

重啟數據庫

gpstop -r

 

解壓並安裝

unzip greenplum-db-4.3.11.3-rhel5-x86_64.zip

/greenplum-cc-web-3.0.2-LINUX-x86_64.bin

source /usr/local/greenplum-cc-web/gpcc_path.sh

 

設置web實例

gpcmdr --setup

啟動實例

gpcmdr --start

 

問題1

During the new installation of Greenplum Command Center (GPCC), an error was encountered:

[gpadmin@mdw gpseg-1]$ gpcmdr --setup

An instance name is used by the Greenplum Command Center as
a way to uniquely identify a Greenplum Database that has the monitoring
components installed and configured. This name is also used to control
specific instances of the Greenplum Command Center web UI. Instance names
can contain letters, digits and underscores and are not case sensitive.

Please enter a new instance name:
> gpcc 
The web component of the Greenplum Command Center can connect to a
monitor database on a remote Greenplum Database.


Is the master host for the Greenplum Database remote? Yy|Nn (default=N):
> n
The display name is shown in the web interface and does not need to be
a hostname.

What would you like to use for the display name for this instance:
> gpcc
What port does the Greenplum Database use? (default=5432):
> 
Creating instance schema in GPDB. Please wait ...
Failed to setup Command Center instance gpcc: Exception encountered while fetching GPDB version info Connection error for query select version();: FATAL: no pg_hba.conf entry for host "::1", user "gpmon", database "gpperfmon", SSL off

[gpadmin@mdw gpseg-1]$

解決

Add the below line to the pg_hba.conf file:

host    gpperfmon       gpmon   ::1/128 trust

Once the line is added, issue a gpstop -u for the changes to take effect immediately without DB restart.

Now retry the command center setup and it should now succeed.

 

gpstop -u (重新加載配置)

 

問題2 登錄界面失敗

解決

host    gpperfmon       gpmon   :::/0 trust
gpstop -u (重新加載配置)


注意事項 : 修改配置后使用 -u 參數進行重新加載配置,不能重新啟動,否者gp啟動失敗。卡在啟動界面中。

原因是在 pg_hba.conf 中添加了

host    gpperfmon       gpmon   :::/0 trust

問題3

擴展節點后監控對新節點沒有跟進

 

解決方案都是臨時,具體原因待調查


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM