3.1 服务器准备
服务器需要准备至少4台服务器,并按照第2节中Greenplum的拓扑结构规划服务器,即:master与standby各独立一台,其他节点均为segment。
服务器的参考配置如下:
| 硬件名称 | 物理机或虚拟机服务器 |
|---|---|
| CPU | 建议至少:2核 |
| 内存 | 建议至少:4G |
| 硬盘 | 建议至少:20G |
| 网卡 | 千兆网卡 |
3.2 操作系统准备
操作系统需要安装CentOS7(64位x86_64系列)的操作系统。
3.3 网络环境准备
服务器间可通过网络互通,具有静态IP地址,每台服务器均可通过ssh进行连接登录(确保机器上的22端口开启且可用,因Greenplum不支持非22端口下的集群初始化),并且域名解析正常,可通过如下示例的ping命令测试通过:
[root@localhost ~]# ping www.baidu.comPING www.a.shifen.com (61.135.169.125) 56(84) bytes of data.64 bytes from 61.135.169.125 (61.135.169.125): icmp_seq=1 ttl=54 time=1.46 ms64 bytes from 61.135.169.125 (61.135.169.125): icmp_seq=2 ttl=54 time=2.19 ms64 bytes from 61.135.169.125 (61.135.169.125): icmp_seq=3 ttl=54 time=1.91 ms64 bytes from 61.135.169.125 (61.135.169.125): icmp_seq=4 ttl=54 time=5.67 ms64 bytes from 61.135.169.125 (61.135.169.125): icmp_seq=5 ttl=54 time=1.55 ms64 bytes from 61.135.169.125 (61.135.169.125): icmp_seq=6 ttl=54 time=2.03 ms^C--- www.a.shifen.com ping statistics ---6 packets transmitted, 6 received, 0% packet loss, time 5007msrtt min/avg/max/mdev = 1.468/2.474/5.677/1.455 ms[root@localhost ~]#
3.4 服务器账号准备
按照如下要求组织配置文件:
- (1)配置文件的名称为account.txt,存放路径不限;
(2)文件的格式为 “IP root 密码”,多个主机间用换行来区分,字段域之间以空格进行分割,示例如下:
[root@localhost root]# cat account.txt10.101.1.10 root 12332110.101.1.11 root 12332110.101.1.12 root 12332110.101.1.13 root 123321
特别注意:
(1)文件中的节点间存在顺序关系,其中第一个为master节点,第二个为standby节点,第三个到最后均为segment节点。
- (2) 账号配置文件account.txt中配置的账号必须为root,否在安装前的检查会报错。
3.5 Greenplum安装介质
可通过如下命令打出bin包:[root@localhost bin]# git clone https://gitee.com/inrgihc/greenplum_installer.git[root@localhost bin]# cd greenplum_installer/[root@localhost bin]# make all[root@localhost bin]# cd bin/[root@localhost bin]# tree ..├── account.txt└── greenplum6-centos7-release.bin0 directories, 2 files
