Metrics_collector还没有添加到共享预加载库(shared_preload_libraries)中
生活随笔
收集整理的這篇文章主要介紹了
Metrics_collector还没有添加到共享预加载库(shared_preload_libraries)中
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
gpcc踩坑
本文最大的鍋,最大的坑來了
安裝完成之后會報以下錯誤!你可以完全忽略錯誤的解決過程直接跳到最后!
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以下版本
然后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!
總結
以上是生活随笔為你收集整理的Metrics_collector还没有添加到共享预加载库(shared_preload_libraries)中的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 思科CCNA第一学期期末考试答案
- 下一篇: EntityFramework进阶——事