greenplum 安装的教程,官方有,非常的详细。
自己安装运行的命令。最近脑子有点糊,老记不住东西,这里简要记录下。
安装GP(Greenplum)
source /usr/local/greenplum-db/greenplum_path.sh
配置initgp_config
copy $GPHOME/docs/cli_help/gpconfigs/initgp_config /home/gpadmin/gpconfigs
批量 gpinitsystem -c gpinitsystem_config -h /gpconfigs/hostfile_exkeys
单节点 gpinitsystem -c gpinitsystem_config -s hostname
export MASTER_DATA_DIRECTORY=/data/gpdata/gpmaster/gpseg-1
gpstart -a
gpstop -a
gpstart -r
安装GP CCC(Greenplum Command Center Console)
1. 设置gpadmin的环境变量
$ source /usr/local/greenplum-db/greenplum_path.sh
$ source /usr/local/greenplum-cc-web/gpcc_path.sh
2. 在GPDB所有主机上安装CC
$ gpccinstall -f hostfilename
$ gpperfmon_install --enable --password gpperfmon --port 5432
4. 设置gpadmin环境变量,~/.bashrc 或者~/.bash_profile
GPPERFMONHOME=/usr/local/greenplum-cc-web
source $GPPERFMONHOME/gpcc_path.sh
6. 设置CC实例
$ gpcmdr --setup
Gpcmdr设置了CCC实例名、实例显示名称、CCCweb服务器端口号(默认为28080)、ssl、ipv6、standby设置等等;
7. 启动CC实例
gpcmdr --start "instance_name"
8. 登录GP CCC
https://master_host_name:28080/
...
以上配置没有涉及greenplum的优化和扩容,只是简单的快速演示环境配置。