GPCC6.0 安装
  7uk9nQQzKLJb 2023年11月02日 38 0

1概述

由于我们安装的greenplum数据库版本为6.2.1,安装的记录过程请点击查看,所以官方推荐的安装GPCC版本为6.0.0,需要结合自身版本来进行安装,不同版本之间有一些不一样,所以本篇博客只是结合自身来记录我们所安装的步骤

2执行gpperfmon_install命令

必须是gpadmin超级用户执行,提供master的连接端口,并提供将要创建的gpmon超级用户的密码,切换为gpadmin用户

su - gpadmin

gpperfmon_install --enable --password gpmon --port 5432

此命令的功能大致是:

  1. 创建greenplum监控用数据库(gpperfmon)
  2. 创建greenplum监控用数据库角色(gpmon)
  3. 配置greenplum数据库接受来自perfmon监控的链接文件(pg_hba.conf和.pgpass)
  4. 设置postgresql.conf文件,增加启用监控的参数。(这些参数默认会添加在文件的末尾)

GPCC6.0 安装_数据库

3检查 gpperfmon_install是否执行成功

ps -ef | grep gpmon 
psql gpperfmon -c 'SELECT* FROM system_now;'

GPCC6.0 安装_bash_02

4安装GPCC-WEB

将下载的GPCC压缩文件上传到系统并解压

请注意,执行gpccinstall命令涉及了root用户和gpadmin用户的权限问题,因为gpccinstall命令需要在Greenplum集群每个节点都创建一个新文件夹,所以,执行命令一定要对目录有读写权限。命令的默认安装路径是/usr/local下。所以

如果,自己规划的路径,并且路径的各级目录是属于gpadmin,那么全程都可以用gpadmin系统用户执行。

如果,要安装在/usr/local下,需要用root用户将/usr/local的权限改成gpadmin

su root

给gpadmin用户授权

chown -R gpadmin:gpadmin /usr/

切换为gpadmin用户

su - gpadmin

进入到GPCC的解压目录,并执行命令

进入gpcc-web的文件夹中,找到可执行文件 gpccinstall-6.0.0

cd /usr/gpcc

执行安装文件

./gpccinstall-6.0.0

license······ 一路点击space空格到底

如果,是默认安装在/usr/local目录下,可以一路enter回车,如果想要自定义,则:

Do you agree to the Pivotal Greenplum Command Center End User License Agreement? Yy/Nn (Default=Y)

回车

Where would you like to install Greenplum Command Center? (Default=/usr/local)

/server/greenplum-tools/(输入,自定义安装路径)

What would you like to name this installation of Greenplum Command Center? (Default=gpcc)

回车

What port would you like gpcc webserver to use? (Default=28080)

如果使用默认的web访问端口,就直接回车

Would you like enable SSL? Yy/Nn (Default=N)

回车

Please choose a display language (Default=English)

1.  English

2.  Chinese

3.  Korean

4.  Russian

5.  Japanese

回车或者输入2

······

5常见问题

5.1无法创建目录"/usr/local/greenplum-cc-web-6.0.0": 权限不够

需要对该用户授权,让用户对usr文件夹有读写权限,主机以及子节点机器都要授权,执行该命令:

chown -R gpadmin:gpadmin /usr/local/

5.2执行:gpperfmon_install --enable --password gpmon --port 5432 提示 (gpperfmon_install:未找到命令)

GPCC6.0 安装_bash_03

需要将环境变量重新载入,然后再执行

source /usr/local/greenplum-db-6.2.1/greenplum_path.sh

export MASTER_DATA_DIRECTORY

source /home/gpadmin/.bashrc

添加环境变量

echo "source /usr/local/greenplum-cc-web-6.0.0/gpcc_path.sh" >> ~/.bash_profile

source  ~/.bash_profile

启动GPCC

gpcc start

GPCC6.0 安装_bash_04

GPCC6.0 安装_bash_05

5.3提示($MASTER_DATA_DIRECTORY is not set. Please set it before running this command.)

应该还是环境变量失效掉了,需要再次载入,然后再次启动

source /usr/local/greenplum-db-6.2.1/greenplum_path.sh

export MASTER_DATA_DIRECTORY

source /home/gpadmin/.bashrc

6浏览器登录GPCC的web界面

我的地址:http://192.168.1.109:28080/

地址格式:http:// (master主节点ip地址):端口号/

用户名和密码:gpmon/gpmon

GPCC6.0 安装_数据库_06

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
7uk9nQQzKLJb
最新推荐 更多

2024-05-31