一、Greenplum支持的操作系统
SuSE Linux SLES 10 update
CentOS 5.0 or higher
RedHat Enterprise Linux 5.0 or higher
Mac OS 10.5 or higher
本教程的系统是CentOS 6.5,用了3台1核1G内存的虚拟机,一台用作master,两台用于segment。除了Mac OS 的配置有所区别,其他的系统可以参照本文进行部属。
强烈建议:每台虚拟机创建时使用gpadmin作为用户名,centos语言选择英语!!!
二、参数调整
在每台虚拟机中调整如下参数:
1)编辑/etc/sysctl.conf
kernel.shmall = 4000000000
net.ipv4.tcp_max_syn_backlog = 4096
vm.overcommit_memory = 2
net.core.netdev_max_backlog = 10000
kernel.sem = 250 64000 100 512
net.ipv4.ip_local_port_range = 1025 65535
net.ipv4.tcp_tw_recycle = 1
2)修改文件打开数限制
编辑/etc/security/limits.conf,添加
* soft nofile 65536
* hard nofile 65536
编辑/etc/security/limits.d/90-nproc.conf,添加
* soft nproc 131072
* hard nproc 131072
3)安装前关闭防火墙
使用/sbin/chkconfig iptables off命令关闭
使用/sbin/chkconfig –list iptables查看防火墙状态,全部为off即可
修改/etc/selinux/config 文件
SELINUX=disabled
4)编辑/boot/grub/grub.conf
添加elevator=deadline
三、GP源码编译安装
1)下载greenplum源码
访问