greenplum开源版本
https://greenplum.org/
其官方手册 https://greenplum.org/documentation/
其下载介质地址 https://github.com/greenplum-db/gpdb/releases
本次下载src-full
https://github.com/greenplum-db/gpdb/releases/download/6.1.0/6.1.0-src-full.zip
编译参照文档
https://github.com/greenplum-db/gpdb/blob/master/README.linux.md
yum install -y unzip
unzip 6.1.0-src-full.zip
#安装依赖
cd gpdb_src
pip install --upgrade pip
./README.CentOS.bash
sudo ln -sf /usr/bin/cmake3 /usr/local/bin/cmake
vi /etc/ld.so.conf
添加
/usr/local/lib
/usr/local/lib64
#运行
ldconfig
sudo yum install -y centos-release-scl
sudo yum install -y devtoolset-6-toolchain
echo 'source scl_source enable devtoolset-6' >> ~/.bashrc
#开通本机ssh免密登录
ssh-keygen
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
#修改配置
sudo bash -c 'cat >> /etc/sysctl.conf <<-EOF
kernel.shmmax = 500000000
kernel.shmmni = 4096
kernel.shmall = 4000000000
kernel.sem = 500 1024000 200 4096
kernel.sysrq = 1
kernel.core_uses_pid = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.msgmni = 2048
net.ipv4.tcp_syncookies = 1
net.ipv4.ip_forward = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.conf.all.arp_filter = 1
net.ipv4.ip_local_port_range = 1025 65535
net.core.netdev_max_backlog = 10000
net.core.rmem_max = 2097152
net.core.wmem_max = 2097152
vm.overcommit_memory = 2
EOF'
sudo bash -c 'cat >> /etc/security/limits.conf <<-EOF
* soft nofile 65536
* hard nofile 65536
* soft nproc 131072
* hard nproc 131072
EOF'
sudo bash -c 'cat >> /etc/ld.so.conf <<-EOF
/usr/local/lib
EOF'
编译
./configure --disable-orca --with-perl --with-python --with-libxml --prefix=/usr/local/gpdb
make -j8
make -j8 install
编译出来的在/usr/local/gpdb目录中,需要拷贝到部署的机器上(注意,有符号连接,不能scp直接拷贝目录,需要tar压缩后再拷贝、解压)