作者:lianghc
文档说明
20191212 号,pivotal 发布gp6.2.1,适逢公司gp集群扩建升级,需要确定版本,所以安装gp6的版本与gp5做比对测试。
本文档参考官方文档,按照官方标准步骤一步一步安装完成。文档中列举了gp6 与旧版本安装的差异点。
目录
2.1.1 检查SElinux(Security-Enhanced Linux)
2.1.3 检查firewalld(centos6 一般没有)
2.9 Transparent Huge Pages (THP)
本文分为两部分
参数配置:【GP6安装配置】 Greenplum6.2.1 安装手记(上)
执行安装:【GP6安装配置】 Greenplum6.2.1 安装手记(下)
时间 |
20191217 |
安装版本 |
greenplum 6.2.1 |
下载地址 |
https://network.pivotal.io/products/pivotal-gpdb/#/releases/526878 |
官方安装文档 |
https://gpdb.docs.pivotal.io/6-2/install_guide/platform-requirements.html |
中文社区安装文档 |
https://greenplum.cn/2019/11/30/how-to-set-up-greenplum-6-1-cluster/ |
1. 软硬件说明及必要依赖安装
1.1 软硬件说明
1. 系统版本:redhat6.8
2. 硬件:3台虚拟机,2核,16G内存,50G硬盘
3. 实验节点规划一个master, 4个segment,4个mirror,无standby
主机ip |
host |
节点规划 |
172.28.25.201 |
mdw |
master |
172.28.25.202 |
sdw1 |
seg1,seg2,mirror3,mirror4 |
172.28.25.203 |
sdw2 |
seg3,seg4,mirror1,mirror2 |
1.2 必要依赖安装
## 与旧版本差异点
gp4.x 无安装依赖检查步骤
gp5.x 使用rpm安装需要检查安装依赖
gp6.2 使用rpm需要检查安装依赖,使用yum install安装 会自动安装依赖,前提条件是需要联网
GP6.X RPM版本安装前需要检查软件依赖,安装过程需要联网,若为内网机,需要先下载好相应的包。
1.2.1 批量安装依赖包(需联网)
greenplum 5 是用rpm命令的,而greenplum 6 则用 yum install 直接安装依赖。
sudo yum install -y apr apr-util bash bzip2 curl krb5 libcurl libevent libxml2 libyaml zlib
openldap openssh openssl openssl-libs perl readline rsync R sed tar zip krb5-devel
1.2.2 内网机需要人工下载后再上传至服务器
注意:操作系统版本位数 ,例如本次虚拟机是: el6.x86_64
[root@mdw ~]# uname -a
Linux mdw 2.6.32-642.el6.x86_64 #1 SMP Wed Apr 13 00:51:26 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
下载地址: http://rpmfind.net/linux/rpm2html/search.php
1.2.3 linux中离线下载
条件:
1. 与安装gp 集群相同版本的操作系统
2. 可联外网
yumdownloader --destdir ./ --resolve libyaml
2 配置系统参数
## 与旧版本差异点
gp6 无gpcheck 检查工具,但再gpinitsystem 环节会检查系统参数。
若不按照官方推荐参数修改,不影响集群安装,会影响集群性能
系统参数需要使用root用户修改,修改完需要重启系统,也可以修改完成后一并重启系统。
建议先修改master主机的参数,待安装好master的gp后,打通ssh,使用gpscp ,gpssh 批量修改其他节点的系统参数
参考文档:https://gpdb.docs.pivotal.io/6-2/install_guide/prep_os.html
2.1 关闭防火墙
2.1.1 检查SElinux(Security-Enhanced Linux)
使用root用户查看
[root@mdw ~]# sestatus
SELinux status: disabled
如果 SELinux status != disabled ,修改 /etc/selinux/config 设置 ,随后重启系统(可以调节完参数后一并重启)
SELINUX=disabled
2.1.2 检查 iptables 状态
[root@mdw ~]# /sbin/chkconfig --list iptables
iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
如果状态没关闭,则修改,随后重启系统(可以调节完参数后一并重启)
/sbin/chkconfig ipt