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安装以及踩坑经历相关推荐

  1. 哈工大pyltp库安装的踩坑经历—windows10+python3.8

    经过折腾近两天,终于在windows10+ python3.8环境下安装成功! 特此记录一下,希望能给后来人减少一些时间上的浪费. 目录 一.安装后的结果: 1.pip list 显示安装成功 2.分 ...

  2. springCloud项目不能向EurekaServer 注册多个EurekaClient时(端口不一致)方法及踩坑经历

    spring cloud 问题说明:springCloud项目不能向EurekaServer 注册多个EurekaClient时(端口不一致)方法及踩坑经历: 前提--->已经能够通过Eurek ...

  3. 记一次成功把Vue2后台项目改造成Vite2的踩坑经历

    文章目录 前言 一.项目背景 1.1.为什么要选择Vite 二.迁移前的准备 2.1.补全.vue后缀 2.2.移动public/index.html的位置 2.2.1.通过vite-plugin-h ...

  4. yolov5-4.0环境搭建,零基础小白都能看得懂的教程。YOLOv5搭建的最快搭建方式,踩坑经历详谈)yolov5/yolov4/yolov3/yolov3通>>>>>>>>>>>>>>>>>第一章

    第一章:python最新YOLOv5-4.0环境搭建,零基础小白都能看得懂的教程.YOLOv5搭建的最快搭建方式,踩坑经历详谈 环境准备: yolov5-4.0环境搭建整体说明 2,anaconda的 ...

  5. 【golang程序包推荐分享】分享亿点点golang json操作及myJsonMarshal程序包开发的踩坑经历 :)

    目录[阅读时间:约5分钟] 一.概述 1.Json的作用 2.Go官方 encoding/json 包 3. golang json的主要操作 二.Json Marshal:将数据编码成json字符串 ...

  6. cmd命令安装composer踩坑

    cmd命令安装composer踩坑 很多童鞋在依照composer官网 官网教程 用命令行安装composer时回踩到以下坑,却不知道如何解决 在此我分享下自己的经验,写个不好请多海涵 打开命令行执行 ...

  7. 一次kvm嵌套虚拟化踩坑经历

    女主宣言 嵌套虚拟化就是虚拟化环境里再次进行虚拟化,简单的说就是虚拟机里运行虚拟机,听起来有点递归的感觉.那是不是可以无限嵌套下去呢?递归有终结条件,否则无限递归下去资源耗尽,嵌套虚拟化嵌套层次越深复 ...

  8. ubuntu 20.04 安装软件踩坑

    ubuntu 20.04 安装软件踩坑 1.搜狗输入法 安装后需要重启一次 重启后讲sogoupinyin添加好,右上角如果没有搜狗就再重启一下 右上角出现了搜狗也是打不出中文的,因为没有安装依赖 安 ...

  9. uniapp 引入阿里矢量图标库的详细步骤及踩坑经历

    uniapp 引入阿里矢量图标库的详细步骤及踩坑经历 首先在阿里矢量图标库选择自己喜欢的图标 加购物车如下图 点击右上角的购物车 添加到项目 这里有坑 首先你不选中在线链接 你是看不到 @font-f ...

最新文章

  1. 注意!今日起 GitHub 新建存储库的默认分支就不叫“master”了!
  2. 从Handler.post(Runnable r)再一次梳理Android的消息机制(以及handler的内存泄露)
  3. vue 多点触控手势_涨姿势了!Appium也可以多点触控操作
  4. 机器人暮色枪骑皮肤_LOL:双11活动来了,38款SN总决赛精选阵容半价皮肤推荐
  5. MathType 的使用
  6. 简单的POST sql注入
  7. python 蓝桥杯排序
  8. 概率论考点之排列与组合
  9. Android学习笔记(四十):Preference的使用
  10. 计算机超链接文档顶端,电脑在Word文档里插入目录超链接的方法
  11. 安装 adobe 软件 photoshop 遇到 81错误 mac
  12. 倒计时 1 天丨微信大数据挑战赛,即将启动报名
  13. 移动端环境搭建--2
  14. LINUX - 实时LINUX内核(PREEMPT_RT)的编译安装以及测试
  15. 若有以下定义和语句:double r=99, *p=r;*p=r; 则以下正确的叙述是 A) 以下两处的*p含义相同,都说明给指针变量p赋值 B) 在“double r=99, *p=r;“中,
  16. html 定义列表dddt,TDDD 文件扩展名: 它是什么以及如何打开它?
  17. Python3 queue队列类
  18. 2019年中国经济四大看点
  19. HDU 5246 超级赛亚ACMer 【贪心】【STL版本二分】
  20. maven项目中报错 could not find class that it depends on找不到依赖的问题

热门文章

  1. 升级PowerShell至4.0版本
  2. ASP.NET Session丢失问题原因及解决方案[转]
  3. 精华阅读第6期|程序猿的世界,你不懂!
  4. 使用visio 提示此UML形状所在的绘图页不是UML模型图的一部分 请问这个问题怎么解决?...
  5. 基本shell编程【3】- 常用的工具awk\sed\sort\uniq\od
  6. unity, 相机空间 与 相机gameObject的局部空间
  7. 关于发布DIPS的MVC项目的IIS 7.0环境配置的方法
  8. Sphinx+MySQL5.1x+SphinxSE+mmseg
  9. 分类算法之决策树介绍
  10. MyEclipse2014破解