日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

GPCC安装以及踩坑经历

發布時間:2025/3/11 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 GPCC安装以及踩坑经历 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

gpcc安裝以及踩坑經歷

官方下載地址文檔

https://network.pivotal.io/products/pivotal-gpdb#/releases/29190 安裝開始之前 chown gpadmin:gpadmin /usr/local 安裝完成之后 chown root:root /usr/local

添加訪問權限

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

編輯環境變量

vim ~/.bashrcsource /usr/local/greenplum-cc-web-6.0.0/gpcc_path.sh srouce /usr/local/greenplum-db/greenplum_path.sh export MASTER_DATA_DIRECTORY=/opt/greenplum/data/master/gpseg-1gpscp -f /home/gpadmin/conf/seg_hosts ~/.bashrc =:~/

修改密碼

alter role gpmon with password 'xxx';

啟動gpcc
gpcc start -W
gpcc stop -W

本文最大的鍋,最大的坑來了

安裝完成之后會報以下錯誤!你可以完全忽略錯誤的解決過程直接跳到最后!

Metrics_collector還沒有添加到共享預加載庫(shared_preload_libraries)中。請添加它以啟用指標收集。詳見文檔。 error alert message, 必須打開GUC gp_enable_query_metrics來啟用指標收集。詳見文檔。

第一個問題解決

gpconfig -l gpconfig -c gp_enable_query_metrics -v on 成功

第二個問題百思不得其解!
網上查詢的版本均為6.0以下版本

查看狀態 gpconfig -s shared_preload_librariesgpconfig -c shared_preload_libraries -v '\$libdir/metrics_collector,\$libdir/gp_wlm'

然后greenplum系統直接崩潰掉,全部注釋掉才能重新啟動greenplum

然后翻看官方文檔

https://gpcc.docs.pivotal.io/610/topics/troubleshooting-wlm.html

pg_config |grep LIBDIR 這個也可以看目錄,但是完全不是一碼事!Command Center requires the Apache Portable Runtime Utility library. The library is no longer included in the Greenplum Database lib directory, but it is installed as a dependency if you install the Greenplum Database distribution with yum or apt. Run the command yum install apr-util or apt install libapr1 if you need to install the apr-util library.

人家壓根就不需要裝這玩意!!!!

最后翻文檔

https://gpcc.docs.pivotal.io/610/topics/troubleshooting-wlm.htmlAfter installing a Pivotal Greenplum Database distribution, the shared_preload_libraries configuration parameter contains the metrics collector shared library. Make sure this library is still present:$ gpconfig -s shared_preload_libraries Values on all segments are consistent GUC : shared_preload_libraries Master value: metrics_collector Segment value: metrics_collector Check that the shared library exists at $GPHOME/lib/postgresql/metrics_collector.so. If the library does not exist, make sure you have installed the Pivotal Greenplum Database distribution. This extension is not available in the Greenplum Database Open Source version.If the shared library file exists in the $GPHOME/lib/postgresql directory, but not in the shared_preload_libraries parameter, add it with the gpconfig command:$ gpconfig -c shared_preload_libraries -v 'metrics_collector' Note that adding metrics_collector to the shared_preload_libraries parameter does not enable the metrics_collector or gp_wlm extensions, but is a prerequisite for enabling them.The gpmon user must be able to connect to databases from the Command Center host. Make sure to add a host entry like the following in the $MASTER_DATA_DIRECTORY/pg_hba.conf file.

看到了沒有!有兩個版本!一個是Pivotal Greenplum Database distribution,一個是Greenplum Database Open Source version!

在Greenplum Database Open Source version 這個版本中$GPHOME/lib/postgresql/metrics_collector.so這個文件壓根就沒有!!!!
因此想要體驗更多的功能,必須下載Pivotal Greenplum Database distribution!

下載地址為:

https://network.pivotal.io/products/pivotal-gpdb#/releases/495851/file_groups/2253

這就是這次的坑!!!裝完Pivotal Greenplum Database distribution這個版本之后再安裝GPCC,啥錯誤都不見了!!!!

總結

以上是生活随笔為你收集整理的GPCC安装以及踩坑经历的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。