1 Star 0 Fork 35

iwhat/gpdb

forked from Gitee 极速下载/gpdb 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
README.amazon_linux 1.99 KB
一键复制 编辑 原始数据 按行查看 历史
Tyler Ramer 提交于 2020-06-18 16:13 . Remove lockfile from mainUtils
# c3.2xlarge is a lower price but powerful dev box for build and test
# try local ssd disk without EBS
# 8 to 16 GB RAM
# 2 to 8 cores CPU
# Select Amazon Linux OS (as opposed to RHEL or CENTOS or Debian etc)
# edit hostname
sudo vim /etc/sysconfig/network
sudo vim /etc/hosts
# add mount points
sudo vim /etc/fstab
# install packages
sudo yum -y install git gcc readline-devel zlib-devel libcurl-devel bzip2-devel bison flex gcc-c++ python-devel openssl-devel libffi-devel libapr-devel libevent-devel
sudo yum -y install perl-ExtUtils-MakeMaker.noarch perl-ExtUtils-Embed.noarch
sudo yum -y install apr-util-devel libxml2-devel libxslt-devel
# edit /etc/sysctl.conf
vm.overcommit_memory = 2
# edit /etc/security/limits.conf
* soft core unlimited
* soft nofile 65536
* hard nofile 65536
* soft nproc 131072
* hard nproc 131072
# edit /etc/grub.conf
add transparent_hugepage=never to kernel boot command line
cat /sys/kernel/mm/transparent_hugepage/enabled
# update blockdev read ahead
/sbin/blockdev --setra 16384 GPDB_DEVICE_NAMES
# reboot host
# pip packages
curl https://bootstrap.pypa.io/get-pip.py | sudo python
sudo pip install --upgrade setuptools wheel pip psutil
# configure and build
git clone https://github.com/greenplum-db/gpdb.git
cd gpdb
./configure --with-openssl --with-libxml --with-libxslt --with-python --with-perl
make
sudo make install
. /usr/local/gpdb/greenplum_path.sh
# create init system file with update values
cp $GPHOME/docs/cli_help/gpconfigs/gpinitsystem_test .
mkdir /home/ec2-user/primary
mkdir /home/ec2-user/mirror
mkdir /home/ec2-user/master
# update these line to reflect accurate names
declare -a DATA_DIRECTORY=(/home/ec2-user/primary /home/ec2-user/primary)
declare -a MIRROR_DATA_DIRECTORY=(/home/ec2-user/mirror /home/ec2-user/mirror)
MASTER_DIRECTORY=/home/ec2-user/master
MASTER_HOSTNAME=mydev
MACHINE_LIST_FILE=/home/ec2-user/hostfile_gpinitsystem
# initialize the system
gpssh-exkeys -h `hostname`
echo `hostname` > hostfile_gpinitsystem
gpinitsystem -c gpinitsystem_test
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/iwhat/gpdb.git
git@gitee.com:iwhat/gpdb.git
iwhat
gpdb
gpdb
6X_STABLE

搜索帮助