greenplum单节点安装
Greenplum单节点安装指南:
系统要求:
- 建议使用CentOS 7.x或者Red Hat Enterprise Linux (RHEL) 7.x操作系统。
- 至少2GB的物理内存。
- 磁盘空间至少10GB。
安装依赖项和配置网络:
sudo yum install -y gcc gcc-c++ make sudo yum install -y kernel-devel sudo yum install -y readline-devel sudo yum install -y libxml2-devel sudo yum install -y libxslt-devel sudo yum install -y python-devel sudo yum install -y tcl-devel sudo yum install -y openldap-devel sudo yum install -y net-tools
创建用户和用户组:
sudo groupadd -g 533 gpadmin sudo useradd -u 533 -g gpadmin -m -d /home/gpadmin gpadmin sudo passwd gpadmin
配置SSH免密登录:
su - gpadmin ssh-keygen -t rsa cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys chmod 0600 ~/.ssh/authorized_keys
下载并解压Greenplum软件包:
wget https://network.pivotal.io/api/v2/products/pivotal-gpdb/files/277417/download.tar.gz tar -xzf download.tar.gz
设置环境变量:
export GPHOME=/home/gpadmin/greenplum-db-6.x.x export MASTER_DATA_DIRECTORY=$GPHOME/gpAware/gpdemo/gpdemo-1/gpseg-1 export PATH=$PATH:$GPHOME/bin
运行安装脚本:
cd greenplum-db-6.x.x/ source greenplum_path.sh ./configure gpseginstall -f /home/gpadmin/greenplum-db-6.x.x/clients/gpdb-clients/gp-client-install.yml
配置并启动Greenplum实例:
cd /home/gpadmin/greenplum-db-6.x.x/gpAware/ source greenplum_path.sh ./demo.sh
以上步骤完成后,你将拥有一个运行中的Greenplum单节点实例。通过psql
命令,你可以登录到数据库并开始使用。
评论已关闭