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

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Metrics_collector还没有添加到共享预加载库(shared_preload_libraries)中

發(fā)布時間:2025/3/11 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Metrics_collector还没有添加到共享预加载库(shared_preload_libraries)中 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

gpcc踩坑

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

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

Metrics_collector還沒有添加到共享預(yù)加載庫(shared_preload_libraries)中。請?zhí)砑铀詥⒂弥笜?biāo)收集。詳見文檔。 error alert message, 必須打開GUC gp_enable_query_metrics來啟用指標(biāo)收集。詳見文檔。

第一個問題解決

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

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

查看狀態(tài) gpconfig -s shared_preload_librariesgpconfig -c shared_preload_libraries -v '\$libdir/metrics_collector,\$libdir/gp_wlm'

然后greenplum系統(tǒng)直接崩潰掉,全部注釋掉才能重新啟動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!

總結(jié)

以上是生活随笔為你收集整理的Metrics_collector还没有添加到共享预加载库(shared_preload_libraries)中的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。