代码拉取完成,页面将自动刷新
同步操作将从 iwhat/gpdb 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。