greenplum集群的搭建 下载本文

内容发布更新时间 : 2024/12/23 14:24:54星期一 下面是文章的全部内容请认真阅读。

organization on whose behalf you are accessing this Agreement (the \any and all components, associated media, printed materials, documentation, and programming accessed via the EMC Greenplum Community Edition software (the \

By clicking on the \installing, or using the Software, you are representing to EMC that (i) you are authorized to legally bind the Customer, and (ii) you are agreeing on behalf of the Customer that the terms of this Agreement shall govern the relationship of the parties with regard to the Software.

*************************************************************************** Do you accept the Greenplum Database license agreement? [yes|no] *************************************************************************** yes

If you do not have authority to agree to the terms of this Agreement, or do not accept the terms of this Agreement, click on the \discontinue your efforts to download the Software, and the registration, download and/or installation process will not continue. In such event, no access to, or authorization to download or use the Software, is granted by EMC.

EMC and Customer enter into this Agreement and this Agreement shall become effective on the date on which Customer clicks on the \

described above or downloads, installs or uses the Software, whichever occurs first (the \

*************************************************************************** Provide the installation path for Greenplum Database or press ENTER to accept the default installation path: /usr/local/greenplum-db-4.2.2.4 ***********************************************************************

[Optional] Provide the path to a previous installation of Greenplum Database, or press ENTER to skip this step. e.g. /usr/local/greenplum-db-4.1.1.3

This installation step will migrate any Greenplum Database extensions from the provided path to the version currently being installed. This step is optional and can be run later with:

gppkg --migrate /usr/local/greenplum-db-4.2.2.4 *********************************************************************** Extracting product to /usr/local/greenplum-db-4.2.8.0 Skipping migration of Greenplum Database extensions...

*************************************************************************** Installation complete.

Greenplum Database is installed in /usr/local/greenplum-db-4.2.8.0 Greenplum Database documentation is available for download at http://powerlink.emc.com. 2、2移动到安装目录 #cd /usr/local/

#chown -R gpadmin:gpadmin ./greenplum-db #ls (显示会有下面两个文件夹) greenplum-dbgreenplum-db-4.2.8.0

#tar –cvfgp.tar greenplum-db greenplum-db-4.2.8.0 (打包)

#scp gp.tar gpnode1:/usr/local/ 分发到两个节点 #scp gp.tar gpnode2:/use/local/

2、3 gpnode1与gpnode2 解压 gp.tar 更改所有者 # tar -xvf gp.tar

#chown -R gpadmin:gpadmin ./greenplum-db 3、节点配置

-------------gpmaster节点----------------------- #su gpadmin

$vi /home/gpadmin/all_host_file gpmaster

gpnode1 gpnode2

$vi /home/gpadmin/all_segs gpnode1

gpnode2

配置greenplum的环境变量 $vi .bash_profile

source /usr/local/greenplum-db/greenplum_path.sh

export PGUSER=gpadmin

export PGDATABASE=SUPERVISE_LPS_ZSQ export GPHOME=/usr/local/greenplum-db-4.2.8.0/

export MASTER_DATA_DIRECTORY=/data/master/gpseg-1

$source .bash_profile

配置各节点的GPSSH链接

$ gpssh-exkeys -f /home/gpadmin/all_host_file

[STEP 1 of 5] create local ID and authorize on local host [STEP 2 of 5] keyscan all hosts and update known_hosts file [STEP 3 of 5] authorize current user on remote hosts ... send to gpmaster ... send to gpnode1 ***

*** Enter password for gpnode1: ... send to gpnode2 ***

*** Enter password for gpnode2: [ERROR gpnode2] bad password ***